Solprovider Lenya

Subpages Menu

This describes how to change the menu to show only only the documents directly beneath the current document.

Put this line in your page2xhtml.xsl:
<xsl:apply-templates select="xhtml:div[@id = 'menu']//xhtml:div[starts-with(@class,'menuitem-selected-')]/../xhtml:div[starts-with(@class, 'menublock-')]" mode="onelevel"/>
where you want the section menu, and these matches near the bottom:

<xsl:template match="xhtml:div" mode="onelevel">
<xsl:apply-templates select="xhtml:div/xhtml:a" mode="onelevel"/>
</xsl:template>

<xsl:template match="xhtml:a" mode="onelevel">
<div class="onelevel"><xsl:apply-templates select="."/></div>
</xsl:template>


Add some CSS for the new menu:
.onelevel { background-color: #CCFFCC; }
.onelevel a {
   text-decoration: none;
   color: #FF6666;
}


<< Menu: SectionMenu: Internal >>

Contact Solprovider
Paul Ercolino