pdoMenu - Using different

I think the real problem is line 113. (Tags that aren’t properly parsed on line 173 should get parsed eventually.)

So I think the solution (without changing the code), is to define both &tplOuter and &tplInner and only use output-modifiers in &tplInner.
In &tplOuter only use simple placeholder-tags!


Also, for this specific navigation, as one of the branches (Competition) is different than the rest, I would try using nested pdoMenu calls (as has been suggested before).

[[pdoMenu?
	&parents=`0`
	&level=`2`
	&tpl=`tplRow`
]]

Then in the chunk tplRow if the ID is 3 (= Competition) make a new pdoMenu-call (with branch-specific templates) instead of outputting the wrapper.

<li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>
[[+id:is=`3`:then=`[[pdoMenu?&parents=`3`&level=`0`&tpl=`tplCompetitionRow`]]`:else=`[[+wrapper]]`]]
</li>
1 Like