Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pkellner 13 posts 33 karma points
    Jul 13, 2010 @ 04:47
    pkellner
    0

    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>

  • jc 64 posts 101 karma points
    Jul 13, 2010 @ 05:40
    jc
    0

    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".

  • pkellner 13 posts 33 karma points
    Jul 13, 2010 @ 05:45
    pkellner
    0

    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.

  • pkellner 13 posts 33 karma points
    Jul 13, 2010 @ 05:47
    pkellner
    0

    I just re-read your comment about right clicking on the "parent" node and select sort.  that works great!!!

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft