Using Multiple sitemap

Nov 29, 2010 at 10:02 AM

Hello,

we are developing a portal application using MEF. in our application we have one main sitemap. and one sitemap for each module. i want to use the module sitemap from the main site map.

///============= this is my module sitemap whice is located in config folder under the root folder.

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true">
    <mvcSiteMapNode key="Information" title="Information" controller="Information" action="Index" >
        <mvcSiteMapNode controller="Information" action="Contacts" title="Contacts" description="Go Home!" />
        <mvcSiteMapNode controller="Information" action="Documents" title="Documents" description="It is About" />
        <mvcSiteMapNode controller="Information" action="PropertyList" title="PropertyList" description="It is User" />
        <mvcSiteMapNode  controller="Information" action="TestView" title="TestView" description="Logout..." />
    </mvcSiteMapNode>
</mvcSiteMap>

 

 

//=======and this is our main sitemap file

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true">
    <mvcSiteMapNode key="Checkout" title="" controller="Home" action="Index" clickable="false">
        <mvcSiteMapNode controller="Home" action="Index" title="Home" description="Go Home!" />
        <mvcSiteMapNode siteMapFile="Config/Mvc.Module.Information.sitemap" />
        <mvcSiteMapNode  controller="Home" action="About" title="About" description="It is About" />
        <mvcSiteMapNode controller="Home" action="UserView" title="User" description="It is User" />
        <mvcSiteMapNode  controller="Home" action="Logout" title="Logout" description="Logout..." />
    </mvcSiteMapNode>
</mvcSiteMap>

 

 

when i am generation a menu from the main sitemap. it is only showing the main sitemap nodes not the module sitemap nodes.  anyone please help me how can i implement this.

 

 

Dec 2, 2010 at 1:36 PM

This is a feature that is currently not available. I'll create a work item for it.

Dec 2, 2010 at 1:36 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.