I’ve been bashing my head against this problem for a few hours now and have gotten nowhere. =(
My wayfinder call is:
[!Wayfinder? &startId=`15` &level=`1` &sortBy=`menuindex` &sortDir=`ASC` &outerTpl=`tplNavOuterTags` &displayStart=`1` &startItemTpl=`tplNavTopItem`l!]
in tplNavOuterTags I have:
and in tplNavTopItem I have:
<ul><li[+wf.classes+]>
<a href="[+wf.link+]" title="[+wf.title+]">[+wf.title+]</a>
</li>[+wf.wrapper+]
This generates the HTML page when on the "press centre" page:
<ul>
<li class="active"><a href="/press" title="Press Centre">Press Centre</a></li>
<li><a href="/press/corporate-social-responsibility" title="Corporate Social Responsibility" >Corporate Social Responsibility</a></li>
<li><a href="/press/newsletters" title="Newsletters" >Newsletters</a></li>
<li><a href="/press/events" title="Events and Competitions" >Events and Competitions</a></li>
<li class="last"><a href="/press/executive-personel-photography" title="Executive Personel Photography" >Executive Personel Photography</a></li>
</ul>
Which is great, however if you go to say the newsletter page the "press centre" page stays active as it is actually the parent of newsletters:
<ul>
<li class="active"><a href="/press" title="Press Centre">Press Centre</a></li>
<li><a href="/press/corporate-social-responsibility" title="Corporate Social Responsibility" >Corporate Social Responsibility</a></li>
<li class="active"><a href="/press/newsletters" title="Newsletters" >Newsletters</a></li>
<li><a href="/press/events" title="Events and Competitions" >Events and Competitions</a></li>
<li class="last"><a href="/press/executive-personel-photography" title="Executive Personel Photography" >Executive Personel Photography</a></li>
</ul>
I’ve tried messing around with &activeParentRowTpl and &parentRowHereTpl but that all seems to apply to the children of the parent, and not the template in tplNavTopItem.
Is there a way to set the template of the &StartItemTpl when you aren’t on that actual page?