Changing the navigation functionality

Topics: Customizing Orchard, General
Mar 29, 2011 at 8:59 PM

I'd like to change the functionality (i.e. the code to produce the list of links) for the of the Orchard Navigation, but I don't want to change the base code. What's the best way to do this in Orchard? (I don't need the layout of the navigation to be changed).

Mar 29, 2011 at 9:45 PM

You can create a class implementing INavigationProvider in your own module, to supply any links you want to the menu.

That's the beauty of Orchard - it's designed so you can do things like that without modifying any base code.

Additionally you might want to examine the source code of Piotr's Hierarchical Navigation module to see ways that he has extended it. You can find it in the Orchard Gallery.

Hope that helps