Hi Everyone,
I'm having some trouble trying to use Wayfinder to sortBy for different levels. My code is below and I have it working perfect for my 2nd level submenu but I don't want it to order the first level. How can I assign the sort by to only order the 2nd level?
[[Wayfinder? &startId=`1` &level=`2` &sortBy=`pagetitle`]]
Thanks in advance.
You could try nested Wayfinder calls: An "outer" one (without sorting) just for the 1st level items, with a rowTpl chunk containing an "inner" Wayfinder call for the submenu, where you use the sortBy property.
Hi ottogal,
Thanks for the reply, im not having much joy with this. What would I need to use for the rowTpl chunk?
I suspect putting it in a <span>[[wayfinder_call]]</span> might be needed in the <li> but I could be wrong.