We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7260
    • 107 Posts
    Hello, Im having fun messing around with all the different menu snippets.

    On my site I have two seperate navigation systems.

    -One is your standard horizontal link bar with the primary sections.

    -And then on sub level docs. I use a different menu in the right column to display The current folders documents only. (I use dropmenu for this currently)

    My questions is...I cant seem to get wayfinder to hide the sub folders. I mean I get to hide subfolders up to a point, that of being on the actual page. Is there a way to disable viewing the sub folder or documents?
    All I want to see in this particular menu are my 5 main folders (sections of the site). -no subfolders, no docs.
    I can hard code this in of course. But in case I do some shifting around etc with folders..I assume a snippet would be better.

    Your assistance appreciated. Thank you
      • 25663 MODX Staff
      • 12,272 Posts
      Just limit the results on the top to one level deep. Check the available parameters for the right one in it’s documentation.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 15987
        • 786 Posts
        just set &level=`1`
          • 7260
          • 107 Posts
          Hey kyle and thrash,
          Yes I got that part...but for some reason it still shows the sub(s) when I actually got to that folder.

          ie:
          Home
          Gallery-
          -each gallery (documents)

          And since its horizontal its blasting my template..

          here is my snippet call

          [!Wayfinder? &startId=’0’ &level=’1’ &hereClass=`now` &hideSubMenus=`1` &outerTpl=`TopNavTpl`!]

          Thanks~

            • 15987
            • 786 Posts
            change your call to this: (always use backticks, not quotes)

            [!Wayfinder? &startId=`0` &level=`1` &hereClass=`now` &outerTpl=`TopNavTpl`!] 
              • 7260
              • 107 Posts
              Dude! Thanks!
              I couldnt even tell which were back tix or quotes.. (lcd monitor?) but I must have did it from habit.
              (I only recently learned that they are back tix not single quotes too).

              Thanks so much..It works perfectly now. I thought I was doing it right.
              I think Im going to put a sticker on my backtick buttom! LOL
              wink

              -now I can tell ` ’ ` ’
                • 15987
                • 786 Posts
                Glad to hear you got it working, everyone mixes up the backticks when they are first getting started. Enjoy smiley
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Imagine my dismay on first doing this on my new iBook (well, it was new last year) to find that the key to the left of the 1/! key is §/±, and the backticks are between the Z and the left shift key! Not only did I keep trying to delimit the values with §, I kept getting ````` when going for the left shift! I’m a 70-wpm touch typist, so it took a while to retrain the old left pinkie!
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org