How to use Razor create a dynamic sidebar navigation (Vertical)? And I want to make the start node is level 2 or level 3.
For example, my site is like the following:
Home
Service 1
Sub Service 1
Sub Service 2
Sub Service 3
Service 2
For example. when I in the page (Service 1), I want my side bar nav looks like:
Sidebar Navigation
Hi All,
How to use Razor create a dynamic sidebar navigation (Vertical)? And I want to make the start node is level 2 or level 3. For example, my site is like the following:
For example. when I in the page (Service 1), I want my side bar nav looks like:
Thanks a lot!
Hi Yuxuan Li,
if you only want to display the navigation on the service pages you can do something like this:
If you also want to display it on the child pages:
/Michaël
Thanks Michael! That works.
No problem glad I could help
/Michaël
is working on a reply...