We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36805
    • 354 Posts
    Hi,

    For a secondary navigation on our site we need wayfinder to start at the deepest level folder the document lies in that is currently viewed. To illustrate what i meant i made some ascii art below. I want to use the page id of "a" as a startId when the user is viewing "1" or "2". If the user is viewing "3" or "4" i want to use the page id of "b" as a startId.

    0 (site start/root)
    |
    |-a
    | |-1
    | |-2
    |-b
    |-3
    |-4

    Thanks in advance.
      • 11975
      • 2,542 Posts
      Hi,

      did you try with UltimateParent snippet ?

      You call will look like this one

      [!wayFinder? &startID=`[[UltimateParent]]` !]

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 36805
        • 354 Posts
        Quote from: heliotrope at Jan 10, 2007, 10:02 AM

        did you try with UltimateParent snippet ?

        No i didn’t but it does exactly what I have been looking for. Thanks a lot! smiley
          • 36805
          • 354 Posts
          Quote from: heliotrope at Jan 10, 2007, 10:02 AM

          [...]
          You call will look like this one

          [!wayFinder? &startID=`[[UltimateParent]]` !]

          :-)

          I got my navigation working by now. if anyone else wants to try this as well please note that startID should be startId, otherwise you’d get weird effects. And in the worst case you would waste a half an hour on this like i did wink
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Yeah, Ditto uses "startID", and Wayfinder uses "startId"... always causes me trouble.
              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
              • 25663 MODX Staff
              • 12,272 Posts
              Seems like it would make sense to have them both be ID ... and to provide backwards compatibility for instances of Id.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                As far as I can tell, all the snippets that have the need to indicate a document ID to use has a different variable. In a way I suppose it’s not a bad thing since it avoids the possibility of conflicts.
                  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