I’m sure this has been asked before, but I want to have 2 wayfinder menus on my page. Each menu will have top level links, which aren’t pages, and a second level of links, which are pages or weblinks. For example:
In the left column...
MENU ITEM 1 - top level
Link 1 - 2nd level
Link 2 - 2nd level
MENU ITEM 2 - top level
Link 1 - 2nd level
Link 2 - 2nd level
etc...
Then in the right column...
MENU ITEM 3 - top level
Link 1 - 2nd level
Link 2 - 2nd level
MENU ITEM 4 - top level
Link 1 - 2nd level
Link 2 - 2nd level
etc...
I can create one of these menus, but don’t know how to do 2. I’ve seen mention of UltimateParent on this forum, but don’t really understand what it does, or if it’s what I need. Also, do I need to create a ’top top level page’ to encapsulate each menu in, and if so, how do I hide this ’non page’ - css perhaps?
Thanks in advance.
call the wayfiner snippet twice in your template
[[Wayfinder? etc]] in the left block and another [[Wayfinder? etc]] in the right section
Sorry, you misunderstand me. The 2 menus are completely different. In the manager all pages are within one structural tree, so how can I have 2 completely separate menus pulled from that one structural tree?
Is the one structural tree really necessary? I’m not sure of how to achieve what you want because I’m quite new to modx myself, but if you can re-think your structural tree it wouldn’t be a problem ...
In the manager you can only have one structural tree (as far as I know). You then create pages, links or containers, which you can then populate with other sub pages, sub links or sub containers and so on, giving you multiple levels of navigation. Just to simplify this question, let’s just say I have 2 pages in my structural tree, one called ’Page 1’ and the other called ’Page 2’. How can I get the ’Page 1’ link to only appear in the left column navigation and the ’Page 2’ link to appear only in the right column navigation? If I use the same Wayfinder call I will obviously get both sets of links in both columns.
give the param
&startId=`1`
to your Wayfinder call
where the number 1 is the id of your page 1
and then another Wayfinder call with &startId=`2`
Woo hoo!... It works. I simply created an invisible container page for each of my menu structures and then set the start id to the id of the container page. Thanks for your help. I know the answer was simple, but I needed a little prompting.
great to here it works!
Modx has given me quite some aha’s, wows and ’oh yes’s ... And I’m still getting to learn it more and more every day.
Thanks to the founders and everyone on this great community