I’m trying to make a submenu on the left side of the website depending on which section the visitor is in. I need to display the parent of the submenu in addition to listing the children.
Example:
if the site tree looks like this:
Home
About
- Item 1
- Item 2
Products
- Item 1
- Item 2
Contact
And I click on About or Item 1 underneath it then it would display:
About
- Item 1
- Item 2
on the left side of the site.
I have wayfinder working as expected for the children of the ultimate parent, and I have figured out how to get the parent ("About" in this case) to show at the top of the menu list however its pulling the pagetitle (H2) instead of the link.
Iam using the wayfinder call below:
[!Wayfinder? &startId=`[[UltimateParent]]` &displayStart=`1` &outerTpl=`sidebar-menu-wrapper` &rowTpl=`sidebar-menu-item` &level=`0` &sortBy=`menuindex` &hereClass=`current_page_item`!]
I can get the entire site tree to display adding
however obviously i don’t need every menu item and sub menu to display. I think I’m close however I just can’t figure it out, any ideas? iam using Evo BTW