Multiple Providers

Feb 9, 2011 at 6:39 PM

Hi everybody!

I used to use version 1.1 of this amazing component, but now moving to ASP.NET MVC2 i noticed changes.

What is the best practice to implement the following requirement: creating a top menu and a side menu (i used to solve this using two providers and simply calling Html.Menu("TopProvider") and Html.Menu("SideProvider") in a view).

Since this is no more supported how should i approach this? Should i use only one sitemap, which will have one root node and two subnodes (which correspond to the top an side menu)? Is this feasible?

Hope i made myself clear!

Thanks in advance


Feb 14, 2011 at 9:15 AM

Should be possible, just use this in your views:

Html.MvcSiteMap("sidemenuprovider").Menu() etc.