We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44234
    • 219 Posts
    Quote from: janice171 at Mar 10, 2011, 06:47 AM

    I am also having trouble getting [[ultimateParent]] to work in Revo 2.0.8pl
    Normally for sub-menu items to display on a page i would use the following minimum call in Evo:
    [!Wayfinder? &startId=`[[UltimateParent]]` &level=`2` &hideSubMenus=`true` &hereClass=`active`!]


    so in Revo it would look like this:
    [[!Wayfinder? &startId=`[[UltimateParent]]` &level=`2` &hideSubMenus=`true` &hereClass=`active`]]


    ...but it doesn’t work. The above just displays the top level items. I’ve tried [[!ultimateParent]] uncached and have cleared the system cache.
    Can anyone offer any suggestions?

    Thanks

    J

    Try this:

    [[!Wayfinder? &startId=`[[UltimateParent? &topLevel=`0`]]` &hideSubMenus=`true` &hereClass=`active`]]


    You can change the &topLevel value to what you want
      Find me on Twitter, GitHub or Google+
      • 36549
      • 572 Posts
      Hi,

      Thnaks for your reply. It didn’t work for me unfortunately.
      Is &topLevel the level the menu should start on?
      I have tried the &topLevel at `1`,`2` and `3` and each time all menu items display rather than just the levels below the top level:

      Anything else i could try?
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
        • 18373 ☆ A M B ☆
        • 3,141 Posts
        Try both cached?

        Revolution parses recursively so you don’t have to use weird cache/uncached combinations.

        Also, try putting the ultimateparent snippet call on the page normally, and see what it outputs.
          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.
          • 22427
          • 793 Posts

          Hello Janice171,
          I hope you continue "listening" here:

          The following Wayfinder call will display a submenu of the immediate children of the document:
          [[!Wayfinder? 
            &startId=`[[UltimateParent? &top=`[[*parent]]`]]`
            &hideSubMenus=`1`
          ]]
            • 36549
            • 572 Posts
            Hi,

            I actually got it to work with the following:
            [[!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]` &outerTpl=`wfInner` &rowTpl=`wfRow` &innerTpl=`wfInner-side` &innerRowTpl=`wfInnerRow` &hereClass=`active` &firstClass=`` &lastClass =`` ]]

              www.9thwave.co.uk
                 WEB | DESIGN | PRINT
              • 28104
              • 8 Posts
              Quote from: ottogal at Apr 28, 2011, 12:38 AM


              Hello Janice171,
              I hope you continue "listening" here:

              The following Wayfinder call will display a submenu of the immediate children of the document:
              [[!Wayfinder? 
                &startId=`[[UltimateParent? &top=`[[*parent]]`]]`
                &hideSubMenus=`1`
              ]]


              Thanks!
              Exactly what I was looking for! grin
                • 22427
                • 793 Posts
                You see the difference between the two ways of defining the  [tt]&startId[/tt]  if you use it in the same template for pages on different levels:
                &startId=`[[UltimateParent? &top=`[[*parent]]`]]`
                In this case every page will display a submenu of just one level (the next one down in the tree, showing the "children" of the page). 
                &startId=`[[UltimateParent? &topLevel=`1`]]`
                Here, depending on its level, a page will show more than one submenu, starting always with the same upper level and going down to its immediate children.

                Edit:
                Changed formatting of the code, was eaten up by the forum before. [ed. note: ottogal last edited this post 13 years, 11 months ago.]