We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1343 ☆ A M B ☆
    • 2,213 Posts
    I have several similar templates with the key difference being they all look for the first folder on the root level.

    - index
    - sub (need this id for all pages contained within)
    -- sub one
    -- sub two
    -- sub three
    --- sub one
    ------ sub one
    - contact

    Anyways I though Ultimate parent was the solution, but this doesn’t work if I click one of the sub pages. I put this in the start ID spot " [[UltimateParent? &topLevel=`2`]] " and it worked perfect for sub, but sub xxx and the menu didn’t show up at all. The wayfinder calls are [! !] so either this is the wrong usage or I just have it setup incorrectly. Can anyone point me in the right direction? Oh, and I did clear the site cache.

    Thanks
    AMDbuilder
      Patrick | Server Wrangler
      About Me: Website | Tweets |  MODX Hosting
      • 5340
      • 1,624 Posts
      1. that Id wont change so you could hardcode it. Is your structure more complicated?
      2. Shouldn’t [[UltimateParent]] (no parameters) return the id for "sub". Or is "sub" not in root
        • 1343 ☆ A M B ☆
        • 2,213 Posts
        Hello,

        I currently have the ID hard coded, but my goal is to eliminate about 4 different templates that only vary by the start id to create these "sub sections"

        Yes, sub is a root document and all the sub ____ documents would be under it. I don’t know about just using UP without any parameters I think the level is required. This is my first attempt using it and well if I got the code right then I know why it’s still a beta.

        AMDbuilder
          Patrick | Server Wrangler
          About Me: Website | Tweets |  MODX Hosting
          • 18206
          • 59 Posts
          [[UltimateParent]] alone should do what you want
            • 1343 ☆ A M B ☆
            • 2,213 Posts
            Jackpot!

            Scratch one problem and three templates.

            Thanks for the help,
            AMDbuilder
              Patrick | Server Wrangler
              About Me: Website | Tweets |  MODX Hosting