Hello
I’m new to modX and - it’s sexy....
it’s so flexible I can do all I want; only one task I can not figure out, if it is possible at all:
I want to directly show one submenu item with its document when I click on a main menu item. That is, not to show something like an "overview page" over the submenu, but directly a document in the submenu.
Example:
Food
meat
vegetables
cakes
Beverages
beer
whisky
soft drinks
cocktails
clicking "beverages" should open the submenu item "whisky" and the whisky document directly.
Thanx!
Gertrud
Thanx for your early answer ;-) I have been studying kandango’s wonderfull guide to wayfinder - but I couldn’t find a solution for the task
-
MODX Staff
- 12,272 Posts
From assets/snippets/wayfinder/wayfinder.documentation.html:
&hideSubMenus set true to only output the active submenu
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
it’s me again...
where do I have to put this snippet?
omg how easy . . .
thanx!