I have 3 levels of navigation, and I want the sub level(s) to be shown only for the section(s) you’re currently in. Pretty much a standard three level nav in other words.
It’s not a problem getting the first and second levels to display as I want them to, but I’ve tried every possible combination to get the third level to appear correctly, and searched the forum, without any luck. The closest I’ve come is this, which displays the correct nav when you’re on a second level page, but when on a top level page the third level nav is also shown (with the the 2nd level nav in it) which I don’t want.
<!-- Topnav -->
<div id="topnav">[[Wayfinder? &startId=`0` &level=`1`]]</div>
<!-- Second level nav -->
[[!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]` &level=`1` &outerTpl=`subnavOuter`]]
<!-- Third level nav -->
[[!Wayfinder? &startId=`[[UltimateParent? &topLevel=`3`]]` &level=`1` &outerTpl=`subsubnavOuter`]]
subnavOuter:
<ul id="subnav"[+wf.classes+]>
[[+wf.wrapper]]
</ul>
subsubnavOuter:
<ul id="subsubnav"[+wf.classes+]>
[[+wf.wrapper]]
</ul>
What am I doing wrong here?