Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
You could try:
<xsl:for-each select="$parent/node [string(./data [@alias='umbracoNaviHide']) != '1']"> <xsl:sort select="@sortOrder" order="ascending" />
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
Thanks!
You could try:
<xsl:for-each select="$parent/node [string(./data [@alias='umbracoNaviHide']) != '1']">
<xsl:sort select="@sortOrder" order="ascending" />
is working on a reply...