sitemapprovider

MVC SiteMap Hiding a node from menuhelper, but display in sitepathhelper (breadcrumbs)

半城伤御伤魂 提交于 2019-12-21 17:57:12
问题 I'm trying to hide a node from my site menu, but display it in my breadcrumbs I'm following the tutorial here: https://github.com/maartenba/MvcSiteMapProvider/wiki/Advanced-Node-Visibility <mvcSiteMapNode title="Create Customer" controller="Customer" action="Create" area="Home" clickable="false" visibility="SiteMapPathHelper,!*"/> The above doesn't seem to work. It shows up both in my site menu, and breadcrumbs. 回答1: We created an OnlyBreadCrumbMVCSiteMapNodeAttribute. We decorate any code we

mvc 3 sitemap provider- multiple paths pointing to same node

╄→尐↘猪︶ㄣ 提交于 2019-12-21 17:43:48
问题 i've recently started to use marteenba's sitemap provider, because i couldn't solve a route problem with the other sitemap i had. It's way better than my previous one. My question is: how can i create different breadcrumb trails from pages that go to a single main page? Consider the idea below: Sitemap Structure <mvcSiteMapNode title="Home" controller="Home" action="Index" changeFrequency="Always" updatePriority="Normal"> <mvcSiteMapNode title="Clients Search" controller="ClientBussiness"

Dynamic sitemap from database doesn't display the nodes

喜你入骨 提交于 2019-12-12 17:04:33
问题 I have implemented this https://github.com/maartenba/MvcSiteMapProvider/wiki/Defining-sitemap-nodes-using-IDynamicNodeProvider Edit : this is my class public class MyDynamicNodeProvider : DynamicNodeProviderBase { public override IEnumerable<DynamicNode> GetDynamicNodeCollection(ISiteMapNode node) { webdata storeDB = new webdata(); var returnValue = new List<DynamicNode>(); foreach (var article in storeDB.SiteContents) { DynamicNode enode = new DynamicNode(); enode.Title = article

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

SiteMapPath Stops Displaying in ASP.NET 4

我的未来我决定 提交于 2019-12-06 12:08:29
问题 We have a SiteMapPath control on the page and this is bound to an XML Web.sitemap file with the default provider. We've had this site for years and have recently upgraded to ASP.NET 4.0 on IIS 7.5 on Windows 2008 R2. For some reason, after about 6-12 hours of operating (not sure exactly when, but it is consistent), the SiteMapPath stops loading for everyone. If we restart the application pool or modify and save the web.config or the web.sitemap XML files, the SiteMapPath starts loading again.

SiteMapPath Stops Displaying in ASP.NET 4

空扰寡人 提交于 2019-12-04 16:44:07
We have a SiteMapPath control on the page and this is bound to an XML Web.sitemap file with the default provider. We've had this site for years and have recently upgraded to ASP.NET 4.0 on IIS 7.5 on Windows 2008 R2. For some reason, after about 6-12 hours of operating (not sure exactly when, but it is consistent), the SiteMapPath stops loading for everyone. If we restart the application pool or modify and save the web.config or the web.sitemap XML files, the SiteMapPath starts loading again. Does anyone have any ideas what could be causing this? There are no file handles keeping the file open

mvc 3 sitemap provider- multiple paths pointing to same node

自古美人都是妖i 提交于 2019-12-04 10:18:22
i've recently started to use marteenba's sitemap provider , because i couldn't solve a route problem with the other sitemap i had. It's way better than my previous one. My question is: how can i create different breadcrumb trails from pages that go to a single main page? Consider the idea below: Sitemap Structure <mvcSiteMapNode title="Home" controller="Home" action="Index" changeFrequency="Always" updatePriority="Normal"> <mvcSiteMapNode title="Clients Search" controller="ClientBussiness" action="ClientSearch" description="Clients Search"> <mvcSiteMapNode title="Contract Analysis" controller=

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

ASP.NET: Custom dynamically populated site map (SiteMapProvider)

穿精又带淫゛_ 提交于 2019-12-01 07:12:11
问题 I'm trying to write my first very own SiteMapProvider subclass. It is meant to be populated dynamically using a bunch of different database lookups, much like all of the examples I've found on the web. However, there are a whole bunch of things that are quite unclear to me. Here are my two first questions: Why is StaticSiteMapProvider used in virtually everyone's project instead of SiteMapProvider ? Since the class contains the name "static", I'm getting the impression that it's not as...well

How to set up a breadcrumb in an ASP.net page

折月煮酒 提交于 2019-11-29 14:45:48
My folder hierarchy for the pages are (They are all in the same folder): Site.Master Default.aspx find_provider.aspx provider.aspx I have a Web.sitemap page set up: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="~/Default.aspx" title="Home" description="Homepage"> <siteMapNode url="~/find_provider.aspx" title="Provider" description="Search for provider"> <siteMapNode url="~/provider.aspx" title="Profile" description="Shows each provider profile" /> </siteMapNode> </siteMapNode> </siteMap> I am calling in my