asp.net-mvc-sitemap

How to structure sitemap with multiple sub sitemap?

会有一股神秘感。 提交于 2020-01-04 06:44:07
问题 I am using MVC4, MvcSiteMapProvider v3.2.1 (able to upgrade to v4 is needed). My problem is the application is huge. And I want to modularize the application and make the module pluggable. Since the sitemap is already huge, I want to make the sitemap also pluggalbe. Is there a way to structure the sitemap with a root sitemap loading nodes from multiple xml files when the application start? Here is the example to explain: The original sitemap: <?xml version="1.0" encoding="utf-8" ?>

How to structure sitemap with multiple sub sitemap?

梦想与她 提交于 2020-01-04 06:44:05
问题 I am using MVC4, MvcSiteMapProvider v3.2.1 (able to upgrade to v4 is needed). My problem is the application is huge. And I want to modularize the application and make the module pluggable. Since the sitemap is already huge, I want to make the sitemap also pluggalbe. Is there a way to structure the sitemap with a root sitemap loading nodes from multiple xml files when the application start? Here is the example to explain: The original sitemap: <?xml version="1.0" encoding="utf-8" ?>

How to use Html.MvcSiteMap().Menu() with dynamic parameter?

。_饼干妹妹 提交于 2019-12-23 01:35:18
问题 I am using MvcSiteMapProvider 4.6.3, MVC 4. I want to use Html.MvcSiteMap().Menu() to generate the menu. The problem is I have multiple parameters in the URLs, which is changed based on user and document id. My Sitemap looks like: <mvcSiteMapNode title="Home" controller="Home" action="Index"> <mvcSiteMapNode title="Site Map Test" controller="SitemapTest" action="Index" area="" key="sitemaptestnode"> <mvcSiteMapNode title="Sub1" controller="SitemapTest" action="Sub1" area="" /> <mvcSiteMapNode

How do I make MvcSiteMapProvider create 1 SiteMap per Area?

夙愿已清 提交于 2019-12-22 01:21:41
问题 How do you make 1 SiteMap per MVC area and use MvcSiteMapNodeAttribute at the same time? 回答1: Please have a look at this answer for help with setting up MvcSiteMapProvider with areas. The routes have to be configured using the correct conventions or it won't work right. However, that alone isn't going to address this requirement, because there is no default assumption made that you want to have a different SiteMap per area. The behavior of the internal DI container assumes that there will be

MvcSiteMap: Dynamic node provider not reached

陌路散爱 提交于 2019-12-18 08:46:06
问题 I created a project that the nodes are defined using attributes, and I set it in the web.config to scan for attributes, and it works fine. I don't use an XML file at all. Now I want to add a dynamic node provider, how do I do it? Is there a way to do it without the XML ( .sitemap ) file? I need to make sure it's under the root, which has been set in code using MvcSiteMapNodeAttribute attribute. I've read the documentation and I can't really figure out where to place this line: <mvcSiteMapNode

MVCSiteMapProvider Dynamic Node always returns the first node for all pages in the breadcrumbs

独自空忆成欢 提交于 2019-12-13 01:20:00
问题 I'm using the MVCSitemapProvider for my ASP.NET MVC 3 project, I have a dynamic node for a press release section. The issue I'm facing is that there are multiple nodes for a section and when I look at the site map it's working correctly as so: > Home > Static Node - Press Releases >Dynamic node - Press Release #1 >Dynamic node - Press Release #2 >Dynamic node - Press Release #3 However in the bread crumbs, if I navigate to the Press Release #2 page. the Breadcrumb will show the first node.

How to add custom xml tags to sitemap.xml using mvcsitemapprovider?

烈酒焚心 提交于 2019-12-09 12:24:49
问题 Based on what Google defines in Video sitemaps , There are some xml tags should be added to sitemaps for videos, and it should be like this: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> <url> <loc>http://www.example.com/videos/some_video_landing_page.html</loc> <video:video> <video:thumbnail_loc>http://www.example.com/thumbs/123.jpg</video:thumbnail_loc> <video:title>Grilling steaks for summer</video:title> <video

How do I make MvcSiteMapProvider create 1 SiteMap per Area?

纵饮孤独 提交于 2019-12-04 19:19:29
How do you make 1 SiteMap per MVC area and use MvcSiteMapNodeAttribute at the same time? Please have a look at this answer for help with setting up MvcSiteMapProvider with areas. The routes have to be configured using the correct conventions or it won't work right. However, that alone isn't going to address this requirement, because there is no default assumption made that you want to have a different SiteMap per area. The behavior of the internal DI container assumes that there will be 1 SiteMap per domain name, and that all of the SiteMaps in the application will be built using the same

How to add custom xml tags to sitemap.xml using mvcsitemapprovider?

核能气质少年 提交于 2019-12-03 14:40:21
Based on what Google defines in Video sitemaps , There are some xml tags should be added to sitemaps for videos, and it should be like this: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> <url> <loc>http://www.example.com/videos/some_video_landing_page.html</loc> <video:video> <video:thumbnail_loc>http://www.example.com/thumbs/123.jpg</video:thumbnail_loc> <video:title>Grilling steaks for summer</video:title> <video:description>Alkis shows you how to get perfectly done steaks every time</video:description> <video

MvcSiteMap: Dynamic node provider not reached

不羁岁月 提交于 2019-11-29 14:50:17
I created a project that the nodes are defined using attributes, and I set it in the web.config to scan for attributes, and it works fine. I don't use an XML file at all. Now I want to add a dynamic node provider, how do I do it? Is there a way to do it without the XML ( .sitemap ) file? I need to make sure it's under the root, which has been set in code using MvcSiteMapNodeAttribute attribute. I've read the documentation and I can't really figure out where to place this line: <mvcSiteMapNode title="Details" action="Details" dynamicNodeProvider="Project.StoreDetailsDynamicNodeProvider, Prject"