Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Jan 11, 2011 @ 19:59
    Connie DeCinko
    0

    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.

  • Connie DeCinko 931 posts 1160 karma points
    Jan 11, 2011 @ 20:04
    Connie DeCinko
    0

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

  • Rasmus Berntsen 215 posts 253 karma points c-trib
    Jan 11, 2011 @ 21:13
    Rasmus Berntsen
    0

    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']

  • Connie DeCinko 931 posts 1160 karma points
    Jan 11, 2011 @ 22:55
    Connie DeCinko
    0

    It's not for listing it's for sorting in the back end.

     

  • Connie DeCinko 931 posts 1160 karma points
    Jan 26, 2011 @ 16:58
    Connie DeCinko
    0

    Seems to be working now.  Seems an error in the sample for the xpath.

Please Sign in or register to post replies

Write your reply to:

Draft