Skip to content

Instantly share code, notes, and snippets.

@UberMouse
Created October 22, 2013 12:22
Show Gist options
  • Save UberMouse/7099648 to your computer and use it in GitHub Desktop.
Save UberMouse/7099648 to your computer and use it in GitHub Desktop.
<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