How to make RootNode render along child nodes in Menu

Aug 12, 2010 at 11:05 PM

When using the Menu HtmlHelper, how can I make the RootNode (home page in my case) render as the first menu item, with its direct children nodes beside it. Example:

SiteMap:

<?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" changeFrequency="Always" updatePriority="Normal"> 
    <mvcSiteMapNode title="Browse Store" controller="Store" action="Index" /> 
    <mvcSiteMapNode title="Checkout" controller="Checkout" /> 
  </mvcSiteMapNode> 
</mvcSiteMap>

Rendered menu:

Home              Browse Store            Checkout

Coordinator
Aug 16, 2010 at 1:56 AM

One of the overloads has a showStartingNode parameter. When setting this to true, the root node should be included.