Show pages hierarchy as navigation link on page

Topics: Customizing Orchard, Writing modules
Mar 28, 2013 at 3:52 PM
Hi Team,
One of my requirement is that, I need to show pages hierarchy as navigation link on page. I have 5 parent pages and each of 5 pages have 3-4 child pages for itself. Now my requirement is that whenever I am on any child page, it will display all pages under its parent page (i.e all child page at same level.)

Please suggest how can I implement it.
Mar 28, 2013 at 4:55 PM
Edited Mar 28, 2013 at 5:05 PM
I have implemented something similar utilising individual Navigation types (Navigation option in the Dashboard) and Widget Layers for the 5 areas (parent pages), e.g.

Parent 1 Menu
Child 1 (a Content Menu Item)
Child 2
Child 3
Child ...

Parent 2 Menu
Child 1
Child 2
Child 3
Child ...

etc.

Each of the parent pages then has a seo friendly slug with related pages beneath it having the same slug prefix e.g.

/parent1
/parent1/child1
/parent1/child2

/parent2
/parent2/child1
/parent2/child2

I've then created a layer per area with layer rule such as url('~/parent1*') and apply the specific navigation e.g., Parent 1 Menu upon that layer. Navigation is applied via Widgets then adding a Menu widget
Mar 28, 2013 at 6:32 PM
Hi Alanevery,
Thanks for responce. But in my case child pages may vary dynamically. Means whenever I added a child page in navigation it should get added. Same if I deleted any child page.

Thanks.
Apr 1, 2013 at 4:06 PM
Hi,
I got solutions to my problem. I had used Menu control and set below properties in it.

Start Level - 2 and Levels to display - 1.

These setting helped me to show only sub menu of parent page.

Thanks.