My main navigation is hardcoded in my template, but can I use Wayfinder to make menu like this?
My website has 6 mainpages:
Page two leads to section with subpages:
Page 2.1 also has subpages:
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...
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:
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.
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.