flattened node hierarchy

Feb 16, 2011 at 2:10 PM

I am trying to set up my first sitemap. Great piece of kit but I am still having problems with one issue:  So far all nodes show up as sibilings with empty children by the time the ascx template is called.

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true">
  <mvcSiteMapNode title="Home" controller="Home" action="Index">
    <mvcSiteMapNode title="About" controller="Home" action="About" />
    <mvcSiteMapNode title="Log In" controller="Account" action="LogOn" />
  </mvcSiteMapNode>
</mvcSiteMap>

I am using  Html.MvcSiteMap().Menu(false, true, true). Other than the ascx template I haven't made any changes to the code yet. I am using 2.3.1 in an ASP.Net MVC 2 environment.

could this be a bug or a problem with my config?

Thanks

Duffy

Feb 18, 2011 at 6:59 AM

Apparently just the top level gets flattened. Lower levels get represented correctly. The music store sample app behaves the same.

Coordinator
Mar 25, 2011 at 8:39 PM

One of the Menu() parameters enables/disables this behaviour: if you want the root node in the child node or not.