My main navigation is hardcoded in my template, but can I use Wayfinder to make menu like this?
My website has 6 mainpages:
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page two leads to section with subpages:
Page 2
Page 2.1
Page 2.2
etc.
Page 2.1 also has subpages:
Page 2.1.1
etc.
What I want Wayfinder to do, is to show on page 2.1 all the subpages that belongs to 2.1 (and on 3.1 all the ones for 3.1, etc.). How do I achieve that? It's not clear to me from the options...
-
☆ A M B ☆
- 397 Posts
Wayfinder should do that automatically. The default settings should go through all levels of your structure and print it out on the page. There is nothing you should need to setup. Just try this:
[[Wayfinder? &startId=`0`]]
It should go through your whole site structure and print out using its default template chunks the whole website like a sitemap.
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
☆ A M B ☆
- 24,524 Posts
I usually use a TV for this, with the TV's default value @INHERIT. Then for the top-level layer of items, I'll edit the TV to be that resource's ID. This way all of its children will inherit the same value for the startId.
[[Wayfinder? &startId=`[[*sidemenuStart]]`]]