MvcSiteMap Menu Overload for initial node

Jun 27, 2011 at 4:28 AM
How do I show only certain nodes?  When I go to the home controller, I only want to show the "Example" node, not the "Test" node.


<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-3.0" enableLocalization="false">
  <mvcSiteMapNode title="Home" controller="Home" action="Index" changeFrequency="Always" updatePriority="Normal" >

    <mvcSiteMapNode title="Example" controller="Example" action="Index" key="Example">
      <mvcSiteMapNode title="A" controller="Example" action="A" >
        <mvcSiteMapNode title="B" controller="Example" action="B" />
        <mvcSiteMapNode title="C" controller="Example" action="C" />
      </mvcSiteMapNode>
    </mvcSiteMapNode>

    <mvcSiteMapNode title="Test" controller="Test" action="Index" key="Test" >
      <mvcSiteMapNode title="AB" controller="Test" action="AB" >
        <mvcSiteMapNode title="AC" controller="Test" action="AC" />
      </mvcSiteMapNode>
    </mvcSiteMapNode>

  </mvcSiteMapNode>
</mvcSiteMap>