buff
buff

Reputation: 331

Orchard Menu items type inside a Theme

scenario : we have a bunch of themes which and depending on the navigation inside a specific theme we want to create a new Menu item type to fill the theme navigation needs .

Example : a theme which include a Menus (Parents) that has no links . inside each parent there is items (sub menus ) which include an action link ...

we'd like to create a Menu item type for each theme , so once activated the menu type will be included in the admin navigation .

is it possible to create those menu item types inside the theme itself not in a module ?

Upvotes: 1

Views: 83

Answers (1)

Hazza
Hazza

Reputation: 6591

So long as your theme has a project file you can implement the IMenuProvider interface to attach menu items to a menu.

This answer has an example implementation: Creating a navigation menu item in Orchard

Upvotes: 1

Related Questions