Shad Storhaug

Results 300 comments of Shad Storhaug

As per [the documentation](https://github.com/maartenba/MvcSiteMapProvider/wiki/Using-Custom-Attributes-on-a-Node#ignoring-routevalues), you need to manually configure custom attributes to be ignored when matching route values by specifying them in the `AttributesToIgnore` configuration setting.

The simplest way is to use a [dynamic node provider](https://github.com/maartenba/MvcSiteMapProvider/wiki/Defining-sitemap-nodes-using-IDynamicNodeProvider) or implement `ISiteMapNodeProvider`. See [this question](http://stackoverflow.com/questions/26487374/with-mvcsitemapprovider-is-it-possible-to-programattically-register-lots-of-page) for more info. To update the `SiteMap` with the latest copy of the data,...

Check out #221, this question is a duplicate. Which package did you install? The page you are referring to is just a reference to get you up to speed on...

You just need to remove the code that registers the routes for the `XmlSiteMapController` and create your own routes. ``` cs // Register the Sitemaps routes for search engines //...

You could do that with a [global MVC filter](https://msdn.microsoft.com/en-us/library/gg416513%28VS.98%29.aspx). MvcSiteMapProvider already has a concept of "non-clickable", so all you need to do is check accessibility and set clickable to false...

Without seeing the code that creates the session, I don't know how much help I can be. You are clearly not using the same [UnitOfWork pattern from this tutorial](http://www.asp.net/mvc/overview/older-versions/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application). What...

There is no caching involved with [security trimming](https://github.com/maartenba/MvcSiteMapProvider/wiki/Security-Trimming). You might be running into issues if you are using some sort of caching in a custom AuthorizeAttribute or if your [security...

Your main issue is that dynamic node providers (despite the name) are not dynamically loaded per request. The data is loaded into the SiteMap, cached, and shared between all users....

Related: http://stackoverflow.com/questions/26541338/load-an-xml-sitemap-into-mvcsitemapprovider-based-on-user-role

Yes, that is one way to do it. Normally, when we are referring to user authorization, you can just enable security trimming, but since your AuthorizeAttribute is data-driven with no...