Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by JosephGrist: http://wiki.apache.org/lenya/HowToFullyCustomMenus ------------------------------------------------------------------------------ where you want the new menu to be. + = "In This Section" Menu = + + Here is a useful menu I wrote. It lists all the pages immediately below the current page in the heirarchy under the heading "In This Section". If there are no pages immediately below the current page, it disappears. This is an extremely useful bit of code. Install it using the method above. + + {{{ + + <!DOCTYPE xsl:stylesheet [ + <!ENTITY nbsp ' '> + ]> + + <xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0" + xmlns="http://www.w3.org/1999/xhtml" + exclude-result-prefixes="nav" + > + + <xsl:template match="nav:site"> + <xsl:apply-templates select="nav:node"/> + + </xsl:template> + + <xsl:template match="nav:[EMAIL PROTECTED]'true']"> + + <xsl:if test="count(nav:node) > 0"> + <div id="sub_tabs"> + <div class="tab_header">In this section: </div><br/> + <xsl:for-each select="nav:node"> + <xsl:choose> + <xsl:when test="@visibleinnav = 'false'"/> + <xsl:otherwise> + <xsl:if test="position() > 1"> + <xsl:call-template name="separator"/> + </xsl:if> + <xsl:call-template name="tab"/> + </xsl:otherwise> + </xsl:choose> + </xsl:for-each> + </div> + </xsl:if> + + </xsl:template> + + <xsl:template match="nav:node"> + <xsl:apply-templates select="nav:node"/> + </xsl:template> + + + <xsl:template name="tab"> + <div class="tab"><a href="[EMAIL PROTECTED]"><xsl:value-of select="nav:label"/></a></div> + </xsl:template> + + <xsl:template name="separator"> + <!-- + <div class="separator"> ... </div> + --> + </xsl:template> + + <xsl:template match="@*|node()"> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/> + </xsl:copy> + </xsl:template> + + </xsl:stylesheet> + + }}} + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
