Copied to clipboard

Flag this post as spam?

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


  • SaphuA 124 posts 87 karma points
    Aug 28, 2009 @ 22:24
    SaphuA
    0

    for-each order?

    Hi there,

    I would like the following xsl code to respect the order of the nodes as they are visible in the tree. However, it seems like it loops in the order of the creation date/time of the node. What is the best way to fix this?

    <xsl:for-each select="$parent/node [string(./data [@alias='umbracoNaviHide']) != '1']">

    Thanks!

  • Ricky Beard 61 posts 116 karma points
    Aug 28, 2009 @ 22:42
    Ricky Beard
    100

    You could try:

    <xsl:for-each select="$parent/node [string(./data [@alias='umbracoNaviHide']) != '1']"> 
    <xsl:sort select="@sortOrder" order="ascending" />

Please Sign in or register to post replies

Write your reply to:

Draft