Hi,
Currently I am trying to implement two different menus to display
documents instead of the same menu everytime. One of the method I was
trying to do was going inside pub/lenya/xslt/navigation/menu.xsl,
and in there, I copy and paste the code for the old menu and rename it as
follow:
<div id="menu2">
<table width="100%" border="0" cellpadding="0" cellspacing="5"
background="/lenya/unizh/authoring/images/TACb_lfbg_192x400.gif"
height="400">
<xsl:apply-templates name="nav:node"/>
<tr><td height="100%"></td></tr>
</table>
</div>
The problem that I am having is that whenever I call the original menu or
the new menu ( menu2 ), this code always being applied:
<xsl:template match="nav:node
[ not(ancestor-or-self::nav:[EMAIL PROTECTED] = 'true']) and
not(descendant-or-self::nav:[EMAIL PROTECTED] = 'true']) and
not(..//nav:[EMAIL PROTECTED] = 'true'])
]"/>
This means that the current page sibblings and descending are being display.
However, I want the option to be able to
display all of the page being created. This means I need to find a way to
overide the above rule for each new menu I created. Can you give me some
advice on any techniques I can try so that each
menu I created will have a unique rule associated with it? I have tried
many different ways to get around with the problem I mentioned above, but so
far it all failed. My biggest obtacles is tha
t I cannot declare the exclude-result-prefixes="nav" twice, so I cannot
match up two different rule for the two menu.
I also tried other suggestion that I recieved from the mailing list. I
followed some advice by visiting http://solprovider.com/lenya/ and read
everything about Sitemaps, Usecase Sitemaps, and Webs
ite Map. I then tried to follow the direction to build a map of all the
pages in my publication, but I kept getting the following error whenever I
click on the link to go to the map:
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request:
ActingClasses/authoring/table.html
cause: org.apache.cocoon.ResourceNotFoundException: No pipeline matched
request: ActingClasses/authoring/table.html
It seems to me that lenya have a hard time Usecase Sitemaps, but I am not so
sure if that I is really the cause. I also notice from the online
direction, one of the step said "To add a link to the
map to your XSL, use:
<A HREF="{$url}?lenya.usecase=map"><i18n:text>Sitemap</i18n:text></A>". I
am not sure what should be in place of {$url}, so I just give the url of the
current page that has the link to the map.
It would be great if you give me more suggestion on what I have to do
because I have been stuck with the problem that I mentioned above for a very
long time and so far I have not made any progress
yet.
Thanks in advance for your help.
_________________________________________________________________
Don�t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]