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

    I’m working on a website and I stumbled on the following problem:

    The document tree looks like this:

    +lvl1+
      +lvl2+ (link tot 100)
        - id100
        - id101
      +lvl2+ (link to 103)
        - id103
        - id104
      +lvl2+ (link to 105)
        - id105
        - id106
    +lvl1+

    When the visitor is viewing (for example) id100, I want a menu to output just 100/101. But not the id’s 103-106.

    - Then when the visitor is going to id103, I just want to output 103 and 104, but not the rest of the id’s. I tried many ways, but I just can’t figer it out smiley

    Help would be highly appreciated! laugh

    Rogier
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The "UltimateParent" snippet will be your friend wink
        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
        • 25586
        • 105 Posts
        Quote from: sottwell at Apr 20, 2009, 09:49 AM

        The "UltimateParent" snippet will be your friend wink

        Yeah I know, But when I use it, it only show the ’Ultimate parent’ tongue And I only want to show the 3rd level. Do I have to use a id or a lvl or some?

        Thanks
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I do believe UltimateParent has a parameter to limit how many levels up it goes.
            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
            • 25586
            • 105 Posts
            Quote from: sottwell at Apr 20, 2009, 12:27 PM

            I do believe UltimateParent has a parameter to limit how many levels up it goes.

            Thanks,

            I will look in to it smiley