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

    I have a small requierment.
    I have a menu with 3 level.
    At the top, the menu will be displayed only the first and second level.
    Some where else, only the third level have to be displayed when I selected/click on it parent.

    I have not find a solution to instruct wayfinder to display on ly the 3rd level.

    Any idea? it will help a lot

    thank
      • 4310
      • 2,310 Posts
      Use this for your sub menu :
      [!Wayfinder? &startId=`[[UltimateParent? &topLevel=`2`]]`!]
        • 23360
        • 258 Posts
        Greta thank for helping,

        but it does not works a 100%.

        This is my wayfind
        [[Wayfinder? &startId=`[[UltimateParent? &topLevel=`2`]]` &rowTpl=`menu-li` &outerClass=`menu2-ul` &levelClass=`level-` &innerClass=`sub-menu2` &hideSubMenus=`false` &hereClass]]

        Here the exemple:
        http://www.naturalfood-pets.com/modx/index.php?id=3

        When I click on Produid (1rt level), it should develop the second level ("Chats" and "Chiens"), but "Chats" and "Chiens" Should not be vsisible , below (below the main menu).
        When I click on "Chats" or "Chiens" it should then show the 3rd level, below (CSS is not ready for the 3rd level shocked) ).


        What happens now, when I click on the first level, it show , below, the 2nd level but it should not, even if I wrote
        &startId=`[[UltimateParent? &topLevel=`3`]]`


        Thnak for your help
          • 23360
          • 258 Posts
          Ok, I solved my issue by adding it

          &excludeDocs=`4,5` 4 and 5 are the id of the document Chats and Chien.

          [[Wayfinder? &startId=`[[UltimateParent? &topLevel=`2`]]` &rowTpl=`menu-li` &outerClass=`menu2-ul` &levelClass=`level-` &innerClass=`sub-menu2` &hideSubMenus=`false` &excludeDocs=`4,5` &hereClass]]


          But is the realy best solution?

          thank
            • 4310
            • 2,310 Posts
            I would have thought that
            &startId=`[[UltimateParent? &topLevel=`3`]]`

            should have done it without the
            &excludeDocs=`4,5`

            But if it works wink
              • 23360
              • 258 Posts
              Hello Bunk58,

              Yes I tried it as well. But when I click on 3rd level menu/page, the 3rd level menu deseapear after displaying the 3 level page.
              If I want to have access to another 3 level menu/page, I have to reclick on its parent menu to re-deiplay the 3rd level menu
                • 23360
                • 258 Posts
                Have a look
                http://www.naturalfood-pets.com/modx/index.php?id=4

                I changed my wayfinder in order to demonstrate what I stated:
                 [[Wayfinder? &startId=`[[UltimateParent? &topLevel=`3`]]` &level=`0` &rowTpl=`menu-li` &outerClass=`menu2-ul` &levelClass=`level-` &innerClass=`sub-menu2` &hideSubMenus=`false` &hereClass]]
                


                ...And "Charts" and "Chiens" are still visible...
                  • 15677
                  • 4 Posts
                  To anyone looking for a solution, kongondo has put together a great wayfinder resource here:
                  http://modxcms.com/forums/index.php/topic,34176.0.html