We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10780
    • 69 Posts
    I am trying to create a single Sub page template that I can use for all my pages that have sub pages attached to them, and I want my ditto call to display all the documents in a sidebar.

    [[Ditto?  &tpl=`sub-list-nav` &orderBy=`menuindex ASC`]]


    That ditto call works if I am on the Top level nav elements, but then if drop down into one of the sub pages the ditto call no longer works. So I was then thinking about Ultimate parent and if that would work.

    Any advice?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Try it. Just remember that nested snippet calls have to be outer uncached, inner cached: [!Ditto? &parents=`[[UltimateParent]]` ...!]
        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
        • 10780
        • 69 Posts
        works a treat. I was calling it differently before, had the UlimateParent as &ultimate... thanks for your help.