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