[[!Wayfinder? &startId=`0` &rowIdPrefix=`column`]]
Thanks for answer, but if I understand correctly each list can be modified only by CSS, but I need to create some div, span and links which means create new template (page) for each item.
You can use &rowIdPrefix to assign a unique id to each list item in your menu, of the format rowIdPrefix + docId
Like this:
[[!Wayfinder? &startId=`0` &rowIdPrefix=`column`]]
Then you can target each item separately in your css, by #column1, #column2, etc....
Try it out and have a look at the html you end up with.
<li>[[!switch? &get=`[[+wf.docid]]` &c1=`1` &do1=`[[$chunk1]]` &c2=`2` &do2=`[[$chunk2]]` &c3=`3` &do3=`[[$chunk3]]` &default=`[[$defaultchunk]]` ]]</li>
[[!Wayfinder? &startId=`0` &rowTpl=`rowTpl`]]
Gotcha. If you’re not a coder you could do this using the Switch snippet.
Download and install that, then create a new chunk called ’rowTpl’:
<li>[[!switch? &get=`[[+wf.docid]]` &c1=`1` &do1=`[[$chunk1]]` &c2=`2` &do2=`[[$chunk2]]` &c3=`3` &do3=`[[$chunk3]]` &default=`[[$defaultchunk]]` ]]</li>
Basically this checks the docid of each menu item, and outputs a different chunk for each.
Then create chunks for each subnav layout you need, using Wayfinder’s placeholders where you need them.
And your Wayfinder call:
[[!Wayfinder? &startId=`0` &rowTpl=`rowTpl`]]
Does that make sense? When all is working, cache both snippets as you won’t need them to run on every page load.
Edit: on second thoughts, I’m not sure if that will work from within Wayfinder Let me know!
[[!Wayfinder? &startId=`0` &rowIdPrefix=`column`]]
[!Wayfinder? &startId=`0` &etc... !]
<li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>