Posted By

BrittanyL on 06/03/09


Tagged

xslt umbraco


Versions (?)

Top navigation to reflect nodes in Umbraco using runway


 / Published in: Other
 

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

  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  

You need to login to post a comment.