I'm using the RunwayTopNavigation addin and I'm having trouble figuring out how to have my tab pages show up in the order I want. I think I want to add a generic property to a page which is a sort index, then have the xslt sort based on that. I'm very new to xslt (and umbraco) and would appreciate some advice on how to do this.
Below is the xslt that comes with runway's navigation.
Thanks
<!-- The fun starts here --> <ul id="topnavigation"> <xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='umbracoNaviHide']) != '1']"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li> </xsl:for-each>
In the admin, can you not sort the nodes the way you want and have that default macro generate them? You should be able to right-click on the parent node and select "Sort".
I've been playing with sorting for the past 20 minutes or so and it seems I can move things to a different level, but not to the same level. Also, I've been confused quite a bit when I move stuff and it does not update until I do "reload nodes". For example, I accidentally moved a textpage into the FAQ folder. Until I did a reload nodes, that textpage showed up twice in my tree view.
Using
I'm using the RunwayTopNavigation addin and I'm having trouble figuring out how to have my tab pages show up in the order I want. I think I want to add a generic property to a page which is a sort index, then have the xslt sort based on that. I'm very new to xslt (and umbraco) and would appreciate some advice on how to do this.
Below is the xslt that comes with runway's navigation.
Thanks
<!-- The fun starts here -->
<ul id="topnavigation">
<xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='umbracoNaviHide']) != '1']">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:for-each>
In the admin, can you not sort the nodes the way you want and have that default macro generate them? You should be able to right-click on the parent node and select "Sort".
I've been playing with sorting for the past 20 minutes or so and it seems I can move things to a different level, but not to the same level. Also, I've been confused quite a bit when I move stuff and it does not update until I do "reload nodes". For example, I accidentally moved a textpage into the FAQ folder. Until I did a reload nodes, that textpage showed up twice in my tree view.
I just re-read your comment about right clicking on the "parent" node and select sort. that works great!!!
Thanks
is working on a reply...