We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33337
    • 3,975 Posts
    What version of MODx are you using? Evolution or Revolution?

    I don’t think if Revolution has [[UltimateParent]] Snippet yet.
      Zaigham R - MODX Professional | Skype | Email | Twitter

      Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • 12793
      • 293 Posts
      I’m using Revo!

      in package area I’ve found the package of UltimateParent for Revo
        • 33337
        • 3,975 Posts
        Ok, I see it now. Sorry for the confusion. sad
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 22427
          • 793 Posts
          Perhaps you should post us the template chunks and the css you use - otherwise it’s really not easy to help you out.
            • 22427
            • 793 Posts
            Looking into the code of the file ultimateparent.snippet.php I found that the parameter name has to be &top instead of &topLevel that the parameter &topLevel doesn’t exist anymore, so you have to use the parameter &top !
            So try the following call in the products template:
            [[!Wayfinder? &startId=`[[!UltimateParent? &top=`1`]]`]]

            This works for me. (It seems not of importance if you call UltimateParent cached or uncached.)
              • 12793
              • 293 Posts
              Greeeat!!


              now I show menu.... my only problem now is how to show Menu1 or Menu2 in the same template


              now I’ve

              [[!Wayfinder? &startId=`[[UltimateParent? &top=`2`]]` ]]


              How Can I show top=2 or top=3 using 2 differents link from a start page?


              Thanks
                • 12793
                • 293 Posts
                I’ve made many test but the problem is the same sad(((
                  • 22427
                  • 793 Posts
                  Try this:
                  [[!Wayfinder? &startId=`[[UltimateParent? &top=`[[*parent]]`]]`]]
                    • 12793
                    • 293 Posts
                    Thanks for your code, but how Can I apply your solution??



                    in resources I’ve:
                    home (1)
                    prod_1 (2) .... with all sub-items
                    prod_2 (3) .... with all sub-items


                    I’ve to set waywinder for allow me to show 2 different menu using 2 differents links


                    and keep the same menu (ID 2 or ID 3) during all navigation... I’ve I choose link for menu with start ID 2 ... when I select all linked of menu I’ve to show always menu with start ID 2


                    Thanks
                      • 22427
                      • 793 Posts
                      In the template for home you set these two links:
                      <a href="[[~2]]">Go to our product line one</a>
                      <a href="[[~3]]">Go to our product line two</a>

                      And now I think you don’t even need UltimateParent; just write into the template of prod_1 and prod_2 this WF call:
                      [[!Wayfinder? &startId=`[[*id]]` .... ]]