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

How implement security with the mvcSiteMapProvider?

I need to implement Role security with my mvcSiteMapProvider V4 software. I am using it with MVC3. Example mvcSiteMap Code: This…
SamJolly
  • 6,347
  • 13
  • 59
  • 125
4
votes
2 answers

MvcSiteMap: Dynamic node provider not reached

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…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
3
votes
1 answer

MvcSiteMap Provider performance issue

I am using a dynamic node provider which contains 6000 nodes in total. The first time a razor view is requested which contains @Html.MvcSiteMap().SiteMapPath(), the page can take up to 7500ms to load. The time is all taken up within this call as…
2
votes
1 answer

SiteMapPath - passing params through routing and querystring

I am using MVCSiteMapProvider 4.6.7 in an ASP.NET MVC 5 project. I have this in the mvc.sitemap file:
2
votes
2 answers

Using mvcSitemap with ASP.NET MVC 5

How can I integrate mvc sitemap in ASP.NET MVC application to provide Role based Access control, and is it the best why or there is a better way to have role based access ?
2
votes
1 answer

How to structure sitemap with multiple sub sitemap?

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…
2
votes
1 answer

Show Node in MvcSiteMapProvider if its action is marked with [Authorize(Roles = "Administrator")]

Currently, I have a Controller with an Index() action method that needs authorization: public partial class CustomerController : BaseDocumentStoreController { [Authorize(Roles = AccountController.Administrator)] public virtual ViewResult…
1
vote
2 answers

How can I find MvcSiteMapProvider.pdb version 2.0.0

I have googled for getting MvcSiteMapProvider.pdb version 2.0.0 but I couldn't find it. The lowest version that I could find is 2.3.1 in https://www.nuget.org/packages/MvcSiteMapProvider/2.3.1
x19
  • 8,277
  • 15
  • 68
  • 126
1
vote
1 answer

MVC SiteMap parent parameters not preserved

I am having the following problem. I setup MVC SiteMap but there is a node which I need to save (preserve) the parameter. Technically the problem explained: I have route: Agent/Checklists/Templates, from there I am opening specific template,…
1
vote
1 answer

MvcSiteMap causes all my controllers to instantiate

Trying to built menu from MenuHelperModel causes MvcSiteMap to construct all my controllers. That could be a big performance hit. Is this only way to go when I rely on [Authorize] to set up security for controllers?
1
vote
1 answer

SiteMapNode is readonly, property 'Url' cannot be modified

I setup MVC breadcumbs for my website using MvcSiteMapProvider (Nuget package MvcSiteMapProvider.MVC5 (version 4.6.22)). It works fine. Then I want to update Url of Sitemap dynamically like: SiteMaps.Current.CurrentNode.Url =…
Minh Nguyen
  • 2,106
  • 1
  • 28
  • 34
1
vote
1 answer

using action parameters as nodes in mvcsitemap

My Custom Route is : routes.MapRoute( name: "custom", url: "{controller}/{action}/{category}/{subcategory}/{lowcategory}/{id}/{ignore}", defaults: new { controller = "Home", action = "Index", category…
Irfan Y
  • 1,242
  • 2
  • 21
  • 68
1
2 3 4