I've done some more testing to figure out why my event nodes will not sort. So, I tried sorting my news releases, which are a few nodes deep. They sort exactly as they should. Added expiration dates, still sorts correctly.
So, based upon some educated guesses, it appears that my events will not sort since they are in a folder one level below the root.
Cannot Sort Nodes in one level below Root
I've done some more testing to figure out why my event nodes will not sort. So, I tried sorting my news releases, which are a few nodes deep. They sort exactly as they should. Added expiration dates, still sorts correctly.
So, based upon some educated guesses, it appears that my events will not sort since they are in a folder one level below the root.
And in further testing, it seems to be a problem with this: rootXpath="//Events[@isDoc]"
What should my rootXpath be if I want to isolate my sorting to the nodes below "Events" which is below "Content"?
How's you nodetree-structure and where do you want to list the events? :)
I usually do this, when I want to list News on the Frontpage:
$currentPage/descendant-or-self::newsArea [@isDoc]/newsItem [@isDoc and string(umbracoNaviHide) != '1']
It's not for listing it's for sorting in the back end.
Seems to be working now. Seems an error in the sample for the xpath.
is working on a reply...