On 9/24/05, George Kelly <[EMAIL PROTECTED]> wrote:
> I would like to make a custom menu for the live view of a publication.
>
> I am using lenya-1.4, and have copied over the page2xhtml.xsl set of
> files and customized my publication that way and that works fine.
>
> However I cannot track down where <xsl:apply-templates
> select="xhtml:[EMAIL PROTECTED] = 'menu']"/> points to or how to customize the
> outputted menu html.
>
> I would like to use nested lists instead of the divs, is that already in
> there or how would I go about setting that up for my publication.
I cannot think of anything possible with LI tags that cannot be
handled with DIV tags. But here are some answers so you so not need
to learn CSS.
To override the menu (or any navigation):
Copy menu.xsl from:
webapp\lenya\xslt\navigation
To:
{pub}\lenya\xslt\navigation
Then you can customize it for one pub. You could also rename it
("myMenu.xsl"), and change the aggregation in the XMAPs to use it:
<map:part src="cocoon://navigation/{2}/{3}/myMenu/{5}.xml"/>
You could also change from DIV to LI in page2xhtml.xsl. Something like:
<xsl:template match="[EMAIL PROTECTED]'menublock-*']">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="[EMAIL PROTECTED]'menuitem-*']">
<LI><xsl:value-of select="."></LI>
</xsl:template>
You may still want to fix menu.xsl, because the default XML is not
very useful. See
http://solprovider.com/lenya/menugraphics
for my rant about it. You might read:
http://solprovider.com/lenya/display
for how the XMAPs find the navigation.
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]