Top navigation to reflect nodes in Umbraco using runway


/ Published in: Other
Save to your folder(s)

With runway installed on your umbraco cms you can use top navigation and have it reflect your nodes.


Copy this code and paste it in your HTML
  1. <ul class="mainNav">
  2. <xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='umbracoNaviHide']) != '1']">
  3. <li>
  4. <a href="{umbraco.library:NiceUrl(@id)}">
  5. <xsl:value-of select="@nodeName"/>
  6. </a>
  7. </li>
  8. </xsl:for-each>
  9. </ul>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.