maartenba / MvcSiteMapProvider

An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
Microsoft Public License
537 stars 220 forks source link

Unexpected behavior (@Html.MvcSiteMap().Menu(...)) #51

Closed vaceknt closed 11 years ago

vaceknt commented 12 years ago

I have SiteMap like this: Item 1 -- Itam 1.1 -- Item 1.2 -- Item 1.3 Item 2 -- Itam 2.1 -- Item 2.2 -- Item 2.3

When I append @Html.MvcSiteMap().Menu(2 1) result is -- Itam 2.1 -- Item 2.2 -- Item 2.3 BUT when I call this method with template name parameter: @Html.MvcSiteMap().Menu("SubMenu", 2 1) Reult is -- Item 2 -- Itam 2.1 -- Item 2.2 -- Item 2.3

It looks very strange. I expected to see such result as in the first case.

I found solution for myself: @Html.MvcSiteMap().Menu("SubMenu", 2, true, false, 1)

NightOwl888 commented 11 years ago

Closing as there is already a solution.