How to make RootNode render along child nodes in Menu

Aug 13, 2010 at 12:05 AM

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:


<?xml version="1.0" encoding="utf-8" ?> 
<mvcSiteMap xmlns="" 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" /> 

Rendered menu:

Home              Browse Store            Checkout

Aug 16, 2010 at 2:56 AM

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