I want to use two different web.sitemap in one application. (a bootstrap navbar is create in my master page, i want different layout default pages etc) So msdn says that you must add a new web.sitemap and a key in the web.config msdn documentation so after doing that im not sure how to query to the new web.sitemap because i read the original one as follows:
SiteMapNode rootNode = SiteMap.RootNode;
makeNavbar(rootNode.ChildNodes, true, false);
....
And its ok... the navbar its created all fine here...
But what i want is something like:
SiteMapBode rootNode = SiteMap.UseProvider("newSiteMap").RootNode;
obviously that function doesnt exist...
All i want its to read the new web.sitemap without change too much code.
Can someone point me in the right direction?
Thanks in advance.