I’m currently working on a multilevel (currently 3) menu, where all the sublevels are each hidden in a dropdown by default. On click on a dropdown parent, the next level should expands and so on. Now the navigation should obviously stay expanded to show the currently active site. Right now it works if I select Sub-Sub-Entry 1
that the navigation stays expanded like I want it to:
* Entry 1 + // expanded
* Sub-Entry 1 + // expanded
* Sub-Sub-Entry 1 <-- selected active site
* Sub-Sub-Entry 2
* Sub-Sub-Entry 3
However when I select Sub-Sub-Entry 2
I only get:
* Entry 1 + // expanded
* Sub-Entry 1 + // closed!
I would’ve thought that the &tplParentRowActive
would also work on the Sub-Sub-Entry 2
as I consider the Sub-Entry 1
is it’s parent, but it doesn’t work. Any ideas where I went wrong?
Here is my pdoMenu call:
[[pdoMenu?
&parents=`0`
&level=`3`
&tpl=`@INLINE <li><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]]</li>`
&tplHere=`@INLINE <li><a href="[[+link]]" [[+classes]] [[+attributes]]>[[+menutitle]]</a>[[+wrapper]]</li>`
&tplParentRow=`@INLINE <li><span [[+classes]]>[[+menutitle]]</span>[[+wrapper]]</li>`
&tplParentRowActive=`@INLINE <li><span class="[[+level:gt=`1`:then=`opener2`:else=`opener`]] current active">[[+menutitle]]</span>[[+wrapper]]</li>`
&hereClass=`current`
&parentClass=`[[+level:gt=`1`:then=`opener2`:else=`opener`]]`
]]
Any help is highly appreciated!