Questions tagged [asp.net-mvc-sitemap]

MvcSiteMapProvider is a tool that provides flexible menus, breadcrumb trails, and SEO features for the ASP.NET MVC framework, similar to the ASP.NET SiteMapProvider model.

MvcSiteMapProvider is a tool targeted at ASP.NET MVC that provides menus, site maps, site map path functionality, and more. It provides the ability to configure a hierarchical navigation structure using a pluggable architecture that can be XML, database, or code driven. We have moved beyond a mere ASP.NET SiteMapProvider implementation to provide support for multi-tenant applications, flexible caching, dependency injection, and several interface-based extensibility points where virtually any part of the provider can be replaced with a custom implementation.

Based on areas, controller and action method names rather than hardcoded URL references, sitemap nodes are completely dynamic based on the routing engine used in an application. Search Engine Optimization support is also provided in the form of dynamic sitemaps XML, canonical URL tags, and meta robots tags to ensure you send the search engines consistent - rather than conflicting - information about your URLs.

It is open-source and hosted on Github. See the link also for documentation.

https://github.com/maartenba/MvcSiteMapProvider

59 questions
1
vote
0 answers

How do I add video nodes to my sitemap using azure media streaming services?

I'm trying to create a sitemap for my new website. I am using azure media services to encode my videos and it provides 10 different endpoints for consumption (several for different connection speeds that are video/mp4, application/vnd.ms-sstr+xml,…
1
vote
1 answer

MvcSiteMapProvider + Autofac + ISiteMapNodeVisibilityProvider from another assembly

I'm having the toughest time figuring out how to register a custom ISiteMapNodeVisibilityProvider (SiteMapNodeVisibilityProviderBase) using Autofac in MvcSiteMapProvider. Everything was working fine up until the point that I moved the visibility…
Alex Dresko
  • 5,179
  • 3
  • 37
  • 57
1
vote
1 answer

Check if .NET MVC Sitemap exists

I am using
to display the sitemap of current page. How do i check if the Sitemap exists for the Current page and then only…
Ruchan
  • 3,124
  • 7
  • 36
  • 72
1
vote
1 answer

How to make the cache to refresh when the XML is changed?

I am using MvcSiteMapProvider 4.6.3, MVC 4. Using DI to config the Sitemap. this.For() .Use(s => System.Runtime.Caching.MemoryCache.Default); this.For(typeof (ICacheProvider<>)).Use(typeof…
Mike Wang
  • 87
  • 1
  • 9
1
vote
1 answer

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

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:
Mike Wang
  • 87
  • 1
  • 9
1
vote
1 answer

How do I make MvcSiteMapProvider create 1 SiteMap per Area?

How do you make 1 SiteMap per MVC area and use MvcSiteMapNodeAttribute at the same time?
NightOwl888
  • 55,572
  • 24
  • 139
  • 212
1
vote
1 answer
1
vote
1 answer

MVCSiteMap: Should the nodes pickup current request parameter values?

Setup: I am using MvcSiteMap version 3 in an ASP.NET MVC 4 app. Problem: I have a node like this: The Planets action on the SolarSystems…
awrigley
  • 13,481
  • 10
  • 83
  • 129
1
vote
2 answers

How do I specify an MVC SiteMaps Visibility attribute using Code based attribute?

I am using the latest Nuget package of MVC SiteMap provider. We are making heavy use of code based attributes defining nodes in our site. E.g. [MvcSiteMapNode(Title = "Examination Types", ParentKey = "LookupTable", Key = "ExaminationTypeIndex")] We…
GraemeMiller
  • 11,973
  • 8
  • 57
  • 111
1
vote
1 answer

ASP MVC Sitemap is there an Image HTML Helper?

I have an ASP MVC Sitemap which look something like this
user460667
  • 1,870
  • 3
  • 19
  • 26
1
vote
2 answers

Can the MvcSiteMap work like the one in WebForms

In webforms if a path is not accesable for a certain user, it will be hidden, can this be done with the MvcSiteMap? https://github.com/maartenba/MvcSiteMapProvider In Webforms all you need todo is
Anders
  • 17,306
  • 10
  • 76
  • 144
1
vote
1 answer

MvcSiteMap only has root node

I'm trying to use the MvcSiteMapProvider, but to create my own custom layout. I used nuget to install MvcSiteMapProvider version 3.2.3.0 to my project and created this file for development. However, when I try to loop through the root node's…
Jason Goemaat
  • 28,692
  • 15
  • 86
  • 113
1
vote
0 answers

analytics, sitemap, routing all in one solution for Asp.Net Mvc

I'm planning all in one solution for analytics, sitemap and routing. Which extension mechanism in Asp.Net mvc I have to use? Some of the sitemap and analytics problem could be resolved at routing level. I think there is overhead using 3rd party…
1
vote
1 answer

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

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: >…
Greg B
  • 803
  • 9
  • 22
1
vote
1 answer

DropDownMenu using MVCSiteMapProvider

I am using asp.net mvc3 razor engine and trying to use the MVCSiteMap provider for rendering the menu, but when i am using the multi-level Site-map, menu control render all the node over the page without and Hover functionality. Please tell, there…
Pawan Agrawal
  • 412
  • 8
  • 26