Hello,
i want to use this kind of menustrukture on my site, is this possible with modx?
Horizontal Menu on top:
Item1 Item2 Item3 ... ItemN
Vertical Menustruktur on the left:
Headline1 (no Hyperlink)
Item 1
Item 2
Item 3
...
Headline2 (no Hyperlink)
Item 1
Item 2
Item 3
....
Headline3 (no Hyperlink)
Item 1
Item 2
Item 3
....
Yes. Using "ultimateParent", "wayFinder" "getResources" and/or "getResourceField"
Thank you, to specify this more, these menuitems are idenpendent and should link all to a static site.
They should be visible on every site.
-
☆ A M B ☆
- 24,524 Posts
The top horizontal menu would be a simple Wayfinder snippet with &level=`1` (unless you wanted drop-down submenues).
The side menus would use Wayfinder snippet calls with the startId paremeter set with the UltimateParent snippet, and the non-linking menu heading provided with the showStart parameter.
Hey, thank you very much, works like a charm.
The last problem is the Heading. How do I get it?
Where is the showStart Parameter?
Edit: How can I add an id/class to an li to set it active if this element is active?
coding Java Android and NDS
Try to use firebug, you’ll be able to easily see the output of Wayfinder, structure, classes, etc.
Okay everything works now. Thank you all very much.