If I rename the nodes in my .sitemap from mvcSiteMapNode to siteMapNode then all works. When I change it back to mvcSiteMapNode it won't work. Nothing renders on the page.
What is the correct way to do this?
7 Answers, 1 is accepted
The nodes should be named "siteMapNode" and using a different name is not support. The only option to change the name and use the built-in sitemap binding is to modify the source code(XmlSiteMap class, SiteMapNodeName property).Regards,
So you saying I can't use it because Kendo won't integrate too?
How then can I manually construct my menu based on the sitemap file and mvcSiteMap nodes? I don't mind if I have to do this. I just don't want to have to give up using MVCSiteMapProvider because your menu's and tabs don't support it.
In that case, you will need to create a collection of objects from the sitemap file and bind them to the menu as described in this documentation topic. I attached a sample project that demonstrates this scenario.Regards,
We will only ever go one level deep, so a TabStrip may look nicer for this.
I can get the tabs to bind and show text etc.. but cannot get the content for each tab based on the sitemap children.
You can set the content of the node to the TabStripItem Html property:Regards,