Is there a way to dynamically build a menu with Wayfinder?
I have a menu generated looking inside a container which has a startid of 3.
Each page within that will have 2-3 pages linked to them. So the structure is like:
Areas of Practice (3)
Erbs Palsy(3)
Page 2(10)
Page 3(11)
Cerebral Palsy(5)
Page 2(12)
Page 3(13)
Lead Poisoning(6)
Page 2(14)
Page 3(15)
Labor Law(7)
Page 2(14)
Page 3(15)
I have it setup where the menus for Areas of practice are genereated fine. The submenu of each of those pages however are causing issues. For example - to load the Areas menu I use:
[!Wayfinder? &startId=`3` &outerTpl=`areaMenuOuter` &hereTpl=`hereText` &level=`1`!]
On the template I call a snippet which loads another menu based on the current page:
[!Wayfinder? &outerTpl=`areaMenuOuter` &hereTpl=`hereText` &level=`1`!]
Problems occur here.
1) The Areas menu displays the parent item as active and as a link which messes up the display.
2) When I am on a page 2 or 3 of a link, the menu does not display since the startid is the current page.
How can I fix these 3 issues?
You can view the site at hand here:
http://test.ronvil.com
Thanks for your time.
Rich