Doug Chestnut wrote:
Richard Frovarp wrote:
Thanks, that worked. Is there a location where things like fallback
and the such are documented? I see the documentation for lenya: and
lenyadoc. I am in the process of trying to figure out the code behind
Lenya. Can be difficult to try to figure the path of events.
http://lenya.apache.org/docs/1_4/reference/publication-templating/index.html
Documentation Patches are very much appreciated ;)
the basic idea behind fallback:// is:
look for the resource in the current publication, if found, return it, else
look in the parent publication,
else
look in the parent's parent,
else ...
else
look in the core (i.e. in webapp/lenya/...)
if everybody uses fallback to get at their resources, you can
selectively override stuff in your pub.
example: some core module inserts lenya/css/menu.css. if you don't like
it, create a subdirectory tree <yourpub>/lenya/css/ and put in your own
menu.css. it will be used instead. if not, either you put it in the
wrong place, or something in the core that should be using fallback isn't.
this works beautifully for all publication resources. but i don't know
what will happen if, say, a module resource is requested via fallback.
it will probably explode. maybe someone else can clarify this.
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]