Hi,
I am encountering 2 problems with a Wayfinder jQuery accordion menu on the website
www.bodypt.nl/new:
1. How to make a top parent menu item have an active color when one of its sub-items is active (color green on website).
2. How to let the sub-items disappear (menu closed) when sub-items of another parent are opened.
The Wayfinder chunks are:
outerTpl
<ul id="menu">
[+wf.wrapper+]
</ul>
parentRowTpl
<li>
<a title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
innerTpl
<ul>
[+wf.wrapper+]
</ul>
Wayfinder call
[[Wayfinder? &startId=`0` &outerTpl=`outerTpl` &innerTpl=`innerTpl` &parentRowTpl=`parentRowTpl`]]
I think for both jQuery is the answer, but I am not good with jQuery programming. Any help is welcome.
Thanks.
Tyronne