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
-
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
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~
-
☆ 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!