I want to display child pages in my navigation (only)when I click on them.
This is the menu now:
Welkom
Wie ben ik
Fotoalbum
Tips & truuks
Lessen
Contact
Links
Gastenboek
Lokatie
I want it to be like: (so when ’Fotoalbum is clicked it expands with a dropdown child’
Welkom
Wie ben ik
Fotoalbum [parent]
- SUBMENU [child]
Tips & truuks
Lessen
Contact
Links
Gastenboek
Lokatie
This is the website:
http://www.meli.nl
(Please view in Internet Explorer as I still need to fix the template for firefox)
Quality doesn't need a big signature.
That didn’t fixed it, this is my call:
[[Wayfinder? &startId=`0` &level=`1` &hideSubMenus=`1` &activelink=`active` &rowTpl=`navMenu`]]
EDIT: I’ve taken a look how Sottwell.com did it and that fixed it:
[!Wayfinder? &startId=`0`!]
I guess my rowTpl neews to be extended
Cheers!
Quality doesn't need a big signature.
What Zi says does work but to keep the sub-menus always open/displayed when their parent menu is active, I think you need javascript, e.g. jQuery...?
Okay after some tweaking with the code you guys gave me I fixed it:
The call:
[[Wayfinder? &startId=`0` &hideSubMenus=`1` &activelink=`active` &rowTpl=`navMenu`]]
{{navMenu}}:
<li[+wf.classes+]><a class="menu" [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
Thnx guys
Quality doesn't need a big signature.