Questions tagged [mvcsitemapprovider]

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

452 questions
20
votes
1 answer

Creating child nodes for a DynamicNode in MvcSiteMapProvider that have dynamic parameters

I am using MvcSiteMapProvider 2.2.1 (http://mvcsitemap.codeplex.com), and am having a problem with creating children under a dynamic node (using a dynamicNodeProvider) when those children have a dynamic parameter (id). I am losing breadcrumbs for…
Chris Curtis
  • 1,478
  • 1
  • 10
  • 21
9
votes
4 answers

Using Multiple MvcSiteMaps

I've recently hit a road block trying to use the MvcSiteMapProvider. In my application, I have three distinct areas: Landing, Application and Administration. I currently have implemented the MvcSiteMapProvider and it works amazingly, but what I'm…
Kori
  • 1,031
  • 2
  • 10
  • 15
9
votes
2 answers

ASP.NET MVC SiteMap provider -- How to 'hide' single items in the actual menu

I am using the ASP.NET MVC SiteMap provider in a project, and it is working great. I am having a tough time trying to figure out how to hide a menu item however. The menu item I want to hide from displaying in the global navigation is my "Site Map"…
cardiac7
  • 491
  • 1
  • 9
  • 26
7
votes
3 answers

MvcSiteMapProvider - Multiple Pages Need To Link to One Menu Node

In my MVC3 project, I have installed Maartenba's MvcSiteMapProvider v.3.2.1 and I have a very simple, static, two-level menu that I have created. Below is the conceptual map structure. - Home - Member Center - Member Listing [SELECTED] -…
bigmac
  • 2,553
  • 6
  • 38
  • 61
7
votes
2 answers

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

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:
7
votes
4 answers

System.Web.Mvc.HtmlHelper does not contain a definition for MvcSiteMap

I am using MvcSiteMapProvider MVC5 with my web application and inside of my _Layout.cshtml file I am using: @if (Html.MvcSiteMap().SiteMap.CurrentNode != Html.MvcSiteMap().SiteMap.RootNode) { @Html.MvcSiteMap().SiteMapPath() } But…
user667430
  • 1,487
  • 8
  • 38
  • 73
6
votes
1 answer

Custom attributes in MvcSiteMap provider

In my file Mvc.sitemap, have the following node: Web.config attributesToIgnore="visibility, classesCustomizadas" Full..
ridermansb
  • 10,779
  • 24
  • 115
  • 226
6
votes
2 answers

How to use implicit localization with MVCSiteMap?

I'm trying to use implict localization with MVCSiteMap but it's not working. Here's my sample Web.Sitemap:
brunosp86
  • 670
  • 1
  • 10
  • 21
6
votes
3 answers

MVCSitemapProvider indicate current node and parent node

I would like to mark the current node and it's parent with a css class. I was searching around and found these links: http://mvcsitemap.codeplex.com/discussions/257786 http://mvcsitemap.codeplex.com/discussions/245000 So I modified…
Remy
  • 12,555
  • 14
  • 64
  • 104
6
votes
2 answers

How to add a new MvcSitemapProvider node at runtime

I'm working on a webshop-like asp.net mvc 4 website with a wcf-service datalayer. My application is build with maincategories, subcategories and products. Each product can only be in one subcategory and my url's are like…
Joppe
  • 101
  • 1
  • 1
  • 5
6
votes
4 answers

MVC SiteMap - when different nodes point to same action SiteMap.CurrentNode does not map to the correct route

Setup: I am using ASP.NET MVC 4, with mvcSiteMapProvider to manage my menus. I have a custom menu builder that evaluates whether a node is on the current branch (ie, if the SiteMap.CurrentNode is either the CurrentNode or the CurrentNode is nested…
awrigley
  • 13,481
  • 10
  • 83
  • 129
5
votes
2 answers

ASP.NET MVC SiteMap

I have been going insane trying to figure out why I can't get the ASP.NET MVCSiteMap to work. I have downloaded the latest version from CodePlex (version 2.3) and set up the references as outlined on CodePlex. I downloaded the DisplayTemplates and…
dotariel
  • 1,584
  • 12
  • 23
5
votes
2 answers

Create breadcrumbs Path in asp.net MVC

I'm trying to create a breadcrumbs that includes pages viewed by user, like the example: Home -> Products -> Smartphones -> ..... Does anyone know how to do that in asp.net mvc 3 with razor view engine ? Or where i can find a good tutorial ?
mmarques
  • 625
  • 3
  • 9
  • 27
5
votes
2 answers

MvcSiteMapProvider not ready on page render, cache issue?

tl;dr: Menu from MvcSiteMapProvider sometimes fails to render itself after an application comes back online, even though the code runs and the menu renders after a page refresh. I am using the MvcSiteMapProvider in an ASP.NET MVC 3 project, and…
Joshua
  • 1,788
  • 1
  • 11
  • 18
4
votes
1 answer

MvcSiteMapProvider and web.config: Parser Error Message: Value cannot be null

In my web.config file I have:
jaffa
  • 26,770
  • 50
  • 178
  • 289
1
2 3
30 31