We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47950
    • 3 Posts
    Hello. I try to get my menu like:
    Category (sorted by 'menuindex')
    -- Subcategory (sorted by 'menuindex')
    --- Document 1 (sorted by 'editedon')
    --- Document 2 (sorted by 'editedon')
    --- Document 3 (sorted by 'editedon')
    ...
    

    I want to sort first and next level menu as 'menuindex' and last level menu as 'editedon'. How I can do that? Thank you.

    This question has been answered by markh. See the first response.

    • discuss.answer
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      I don't think you can do that with Wayfinder. The easiest solution - but not necessarily the best - is to throw in a getResources call somewhere to grab the documents sorted by editedon. Probably in the rowTpl, checking the level or resource ID and conditionally outputting the getResources call there.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 47950
        • 3 Posts
        Thank you.