mvcsitemap

MvcSiteMap Provider Setup Problems

In relation to this post I'm using the MvcSiteMap provider. I can't seem to get it to work. What I'm doing is opening the project made available by the download, compiling it, then taking the MvcSiteMap.Core.dll generated by the build, placing it in my Dependencies folder in my MVC project, and then right-clicking on references and hit...

Site navigation for an 'Admin' application in ASP.NET MVC

I've made an Area project for my ASP.NET MVC application called 'Admin'. This will contain all the logic for the Administration section of the site, where the users can add/remove pages, etc. There's a menu at the top, of things the user can manage. (E.g. 'Content', 'Users', etc) For each of these, I'm making a controller ('ContentCon...

Why is my Sitemap.CurrentNode null????

System.NullReferenceException: Object reference not set to an instance of an object. Making the Sitemap.CurrentNode work in my code is oddly a problem. I haven't figured out how to list code on STOF yet... so here is the code that will easily be displayed. Title: "localhost/home.aspx/about" Response.write(SiteMap.Curren...

how to install and use MVC Sitemap

since the Sitemap of VS2008 does not work with MVC, I found MVC Sitemap by maartenba on codeplex. But how do I install and use this.. The download is a sample, and below it is a Dll. I'm sure the install is ridiculously simple, and also overlooked. So I'm looking here to see if I can get assistance using this package in my VB website. ...

How to model this navigation scenario with efficient Route and ASP.NET Sitemap?

Hi, i need to model the following scenario, but I can't get it working with the MvcSitemapProvider (i think my problem also maps directly to the default SiteMapProvider). I want to get the default breadcrumbs control to work properly with my dynamic data. I have a list of products which are grouped by category which have a parent-categ...

MVCSitemap - maintaining the ID parameter in sub-pages

I've got the following structure to a site: /Products/ /Details/{ID} /Details/Edit/{ID} It's slightly different from the usual /products/edit and /products/details approach most sites have, because the edit link is only available on the Details page. My problem is ASP.NET MVCSitemap doesn't maintain the keys in the sitema...

Site Security/Access management for asp.net mvc application

I am trying to find a good pattern to use for user access validation. Basically on a webforms application I had a framework which used user roles to define access, ie, users were assigned into roles, and "pages" were granted access to a page. I had a table in the database with all the pages listed in it. Pages could have child pages t...

How can I use SiteMap more efficiently?

So, in our website we are using SiteMap. For each request we render some menu and to do that we do SiteMap.RootNode in the helper function. Now, when I have done the profiling of my website using dotTrace, I saw the get_RootNode() is taking lot's of time(around 70-75 millisecond). But we know that the SiteMap is static. So, I am thinki...

How would you achieve this using MVCSITEMAP?

How are you going to pass a viewdata into the sitemap file? <%= Html.ActionLink("Home", "Index", "Home", new { id = ViewData["customRouteValue"] })%> ...

MvcSitemapProvider is returning all in Https instead of Http

hi, i am using MvcSitemapProvider and is working fine, but its returning all results in Https instead of Http. i am unable to find a way to return the results in http (sitemap for search engine) <mvcSiteMapNode title="Details" controller="Home" action="News" dynamicNodeProvider="DynamicPostDetailsProvider, MyNamespace" updatePriority=...

How can I determine the current controller action in an mvc sitemap?

Hi all, I'm stuck with a problem of which I can not imagine I am the first person having to deal with it. Yet, Google comes up with nothing useful and neither does SO, so here I am. I'm using ASP.NET MVC1 with a sitemap. Using an html helper I create a navigation menu that highlights the current selected option in the Site.Master page....

MVCSiteMap Port Problem

Hi Guys, I am using MVCSiteMap - http://mvcsitemap.codeplex.com/ - with Azure and I am trying to figure out how I can get it to remove the PORT number at the end of the generated sitemap. Currently, I am getting http://127.0.0.1:5100/ For this url and all others. Does anyone have any experience with this or know how to remove the p...

Does MVC SiteMap 2.0 support custom attributes?

I'm using v2.0 of the MVC SiteMap project. With the System.Web.XmlSiteMapProvider in webforms, I often stored custom attributes on nodes, and accessed them through the Attributes[] collection. This is very useful for building non-standard collections of nodes, that all share an attribute. The MVC SiteMap doesn't seem to support custom...

Create/remove sitemap node in ActionResult - ASP.NET MVC SiteMap provider

I am using the ASP.NET MVC SiteMap provider to create dynamic sitemap nodes. It works when the application is first loaded, but I wish to add/remove nodes when an ActionResult executes (to add/remove a record from the database). My web.sitemap is as follows (taken out the parent node and other siblings) <mvcSiteMapNode dynamicNodeProvid...

Problem with MvcSiteMapProvider and dynamicNodeProvider

Hi I have add the provider in my web config as below: <add name="MvcSiteMapProvider" type="MvcSiteMapProvider.DefaultSiteMapProvider, MvcSiteMapProvider" siteMapFile="~/Sitemap/SiteMap.sitemap" securityTrimmingEnabled="true" enableLocalization="true" scanAssembliesForSit...

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: <?xml version="1.0" encoding="utf-8" ?> <mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true"> <mvcSiteMapNode title="Home" controller="Home" action="Index" changeFrequency="Alw...