We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29703
    • 217 Posts
    Hello!

    So far I’ve been very successful with ModX and am indeed a happy man.

    For my site design that I am working on, I have three separate navigation menus, a top nav, a browse nav and a footer nav.

    How do I get these different menus pick up different pages? For example, I don’t want any of the browse nav’s menu items to be displayed in the top nav bar.

    Any help would be more than appreciated! smiley
      • 27708 MODX Staff
      • 2,502 Posts
      One way to do it would be to make use of parameters in Wayfnder to limit the documents to specific Document ids.

      [!Wayfinder? &startId=`0` &includeDocs=`12, 6, 34, 101`!]


      Another way to do it would be to nest the documents in a parent document and then :

      [!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]` &level=`1`!]


      Let me know if this is what you were after.

      Cheers,

      Jay
        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
        • 29703
        • 217 Posts
        Thanks for the quick response!

        I would like to be able to do it your second way as it would be neater when managing my menus. What I’m not seeming to understand however is that when I have a parent document (to be treated like a folder) it lists it on my menu as a menu item. Can I get rid of this?

        Thanks again!
          • 27708 MODX Staff
          • 2,502 Posts
          Yes, From the manager just make sure that the "Show In Menu" checkbox is unchecked.

          Cheers,

          Jay
            Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
            • 29703
            • 217 Posts
            By gum I think you’ve cracked it!

            Thanks for the help! I shall endeavor to advance your knowledge so that one day I might be able to help you with something undecided

            p.s.

            One more quick thing. I now have a menu on the left hand side full of deleted menu items. Is there a way I can hide them?
              • 27708 MODX Staff
              • 2,502 Posts
              I am not sure. If they are actually deleted and not just unpublished you should use the Purge Deleted Documents in the manager (it is the little garbage can).

              If they are unpublished I am not sure. You may want to ask TobyL about it.

              Cheers,

              jay
                Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                • 29703
                • 217 Posts
                Oh yeah the garbage can works a treat - I just thought it was grayed out for some reason.

                Thanks for all your help, I’m on my way now smiley
                  • 16987
                  • 11 Posts
                  I want to have two separate menus too, I’m using wayfinder 2 and I have a problem.

                  You can see it on http://www.multi-media-sprachkurs.de

                  the left template variable is:
                  [!Wayfinder? &startId=`0` &excludeDocs=`88` &outerTpl=`menu_tpl` &innerTpl=`submenu_tpl`!]


                  and the menu item "Verlagsinfos (ID 88)" should not show up and this is right

                  the right template variable is:
                  [!Wayfinder? &startId=`0` &excludeDocs=`1, 12` &outerTpl=`menu_tpl` &innerTpl=`submenu_tpl`!]
                  


                  this isn’t right - the menu Item "Sprachkursübersicht ID 1" doesn’t show up, but the menu item "Nordeuropäische Sprachen shows up (ID 12). The comma separate list doesn’t work. I tried semicolion, but it is the same, and when I tried the following

                  right template variable:
                  [!Wayfinder? &startId=`0` &includeDocs=`88` &outerTpl=`menu_tpl` &innerTpl=`submenu_tpl`!]
                  


                  the menu level 2 (menu-item "test" doesn’t show up), and when I add the ID of the "test" document then the above happens, the snippet doesn’t use both, just and only the first ID.

                  The right menu should just contain the documents inside one folder (Verlagsinfos - now ID 88 with child documents within) and the left menu the rest of all other document.

                  Thanks in advance.

                  laugh solved the problem - I use for the right menu the start id of the folder "Verlagsinfos" and now it’s right.

                  But I want to know, why the comma separate list in &include and &exclude doesn’t work.