Andreas Hartmann wrote:
> Joern Nettingsmeier wrote:
>> hi everyone!
>>
>>
>> i have a template publication that currently uses the menu.xsl from
>> webapps/lenya/modules/sitetree/navigation/ (i found out with a quick
>> test modification of this file)
>>
>> the goal is to override this xsl in <my-template-publication>. ideally
>> so that:
>>
>> * i don't need to modify/copy any other files
>> * it gets propagated to all instances of <my-template-publication>.
>
> Actually it should work with normal fallback:
>
> mytemplatepub/lenya/modules/sitetree/navigation/menu.xsl
>
> If it doesn't work, it's a bug (maybe a fallback// call is missing).
>
>
>> how do i do it?
>> and is there documentation somewhere about the codepath of the menu
>> generation? i'm really irritated that i can't work this out for myself.
>> is it my stupidity, or is lenya fiendishly complicated?
>
> What irritates you? The fallback mechanism towards the core just
> defines that you have to put files in the corresponding location
> in the lenya directory. In this case:
>
> lenya/modules/sitetree/navigation/menu.xsl
>
> is overridden by
>
> mytemplatepub/lenya/modules/sitetree/navigation/menu.xsl
ah. it works, thanks!
my error was to omit the "lenya" part in the path. i had assumed that
webapps/lenya/* was the "global" location for stuff, and
webapps/lenya/pubs/mypub/{1} the local one.
still, i think the paths are very counter-intuitive (the mere fact that
some paths have "lenya" three times in it shows things are getting crufty).
>> (aside: lenya is very grep-unfriendly, most things are abstracted to the
>> nth degree. sometimes the strings i'm looking for are only in file
>> names, not in file contents. yuck. how do you find your way around?)
>
> I use the Eclipse search functionality.
sigh. you are trying to hurt me, aren't you?
may $DEITY cast you helpless on the command line!
(as a personal note: andreas and other lenya folks, i really appreciate
your help. please don't take my occasional bickering personally, i'm
just whining about technical issues, and only with a wink.)
--
"Án nýrra verka, án nútimans, hættir fortíðin að vekja áhuga."
"Without new works, without the present the past will cease to be of
interest."
- Ásmundur Sveinsson (1893-1982)
--
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]