We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38516
    • 3 Posts
    I'm having some trouble with wayfinder. Any time I specify &sortBy it seems to default to sorting by the ID of the resources. If I don't specify &sortBy it will sort by the menu index. Also, &sortOrder doesn't seem to work either.

    Here's the call, maybe I've got some syntax wrong or something?
    [[!Wayfinder? &startId=`2` &hereClass=`current_page_item` &ignoreHidden='true' &limit=`10` &sortBy='pub_date' &sortOrder='DESC']]


    Any help will be greatly appreciated. [ed. note: tanyril last edited this post 14 years, 7 months ago.]
      • 38516
      • 3 Posts
      Never mind. I solved my problem.
      Apparently the 's i was using were wrong for those.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Those have to be backticks `...` not single-quotes '...'

        [edit] Heh. I see you caught that yourself. Careful, you have them in another parameter as well.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 38516
          • 3 Posts
          Yep, got it. Thanks!
          I actually was able to tell because I installed Codemirror figuring it was something along those lines. The difference is almost imperceptible without special formatting smiley