Use of &level with &limit on pdoMenu or Wayfinder

I don’t think so.


Maybe you can use the &includeDocs or the &excludeDocs property to achieve what you want.
Create a custom snippet that generates a comma separated list of resource ids you want to include in your menu or exclude from it.

[[Wayfinder?
    &excludeDocs=`[[customSnippet]]`
]]

Or maybe you can use nested Wayfinder calls. Create a custom parent-row-template that calls Wayfinder again with a limit property. But I’m not sure if that even works.

[[Wayfinder?
    &startId=`1`
    &level=`2`
    &parentRowTpl=`myParentRowTpl`
]]

Chunk myParentRowTpl:

<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>
[[Wayfinder?
    &startId=`[[+wf.docid]]`
    &level=`1`
    &limit=`3`
]]	
</li>
1 Like