Created
October 22, 2013 12:22
-
-
Save UberMouse/7099648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="topNavigation"> | |
<li class="home"> | |
<xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id"> | |
<xsl:attribute name="class">home current</xsl:attribute> | |
</xsl:if> | |
<a href="/">Home</a> | |
</li> | |
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']"> | |
<li> | |
<xsl:if test="@id = $currentPage/@id"> | |
<xsl:attribute name="class">current</xsl:attribute> | |
</xsl:if> | |
<a class="navigation" href="{umbraco.library:NiceUrl(@id)}"> | |
<span><xsl:value-of select="@nodeName"/></span> | |
</a> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment