Reputation: 392
I'm wondering if there's a way in Orchard or a plugin/module that anybody knows of that will let you create subpages in Orchard such that when I go to content -> pages I'm not looking at a huge list of pages; I want to see a list of main pages with their sub pages grouped under them?
Is this possible?
On a related note...when you're working with a navigation widget (that uses a menu) I want to highlight the main item as a current nav item when I'm on a "subpage".
For example, my Company page has a separate leadership page that I would want to highlight the company nav bar item (since leadership is a subpage) when you're on it.
Any recommendations would be very helpful. Thanks!
Upvotes: 2
Views: 1014
Reputation: 4763
There are many ways you could achieve this in Orchard:
You could use blogs and blog posts:
You could also use Orchard.Lists
module which enables you to add Containable
and Container
parts to get the functionality similar to blogs, but for other content types. You can check the tutorial on how to do it here
You could use Orchard.Taxonomies
module to create a hierarchy of pages and use taxonomies for your menu
Lastly, you can do this manually by using ordinary pages and giving them hierarchically named slugs (for example parent page could have URL /parent
and child page could have slug /parent/child
). You could then manually create a menu that is hierarchical and consists of pages you created and use slugs to highlight your parent pages in menus..
Upvotes: 1