We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9436
    • 26 Posts
    Hi, Lets say there is menu looking like:

    Page1
    Page2
        subpage 1
        subpage 2
    Page 3
      subpage 1
        subpage 2

    I have Page menu on top horizontal navigation and I would like to have subpage items on a sidebar navigation. For example if you go to Page2 you will see navigation of subpages of Page2 on a side. If you go to Page 3 you will see submenu for only this page on a side. Does anubody knows what calls and where I should put to get this effect? I was searching documentation and forums with no success (Ifound just one about DropMenu but it has been replaced by Wayfinder in new ModX...) Is it possible ?
    Thanks.
      • 4310
      • 2,310 Posts
      For the top level menu
       [[Wayfinder? &startId=`0` &level=`1`]]

      For the sub-menu.
       [[Wayfinder? &startId=`[!UltimateParent? &topLevel=`1`!]`]]

      You will need to style them.
      Look here for more info.

      EDIT _ CORRECTED AS PER dev-cw
        • 7231
        • 4,205 Posts
        The above call is missing the closing ` after the UltimateParent call.
         [[Wayfinder? &startId=`[!UltimateParent? &topLevel=`1`!]`]]
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 4310
          • 2,310 Posts
          Nice spot dev_cw !
            • 9436
            • 26 Posts
            Thanks a lot!!
            Actually I modified this to:
            [!Wayfinder? &startId=`[[UltimateParent]]` &parentClass=`show` !]

            and it is also working smiley
              • 18367
              • 834 Posts
              Perfect, exactly what I needed to know also.

              Should be part of the wayfinder forum, sticky and tutes.

              grin
                Content Creator and Copywriter