I am aware that the tag has the "roles" attribute to make up for the nodes that don't have the "url" attribute, which can be resolved in other ways. I'm not interested in these other ways, though, I'd like to have all my permissions set in my sitemap file. How to accomplish this?
I'm using custom RoleProvider, custom MembershipProvider...
Hi All,
I need to customise the title property for SiteMapNodes.
I am using WSS, and have created a custom document library. While navigating through this library I want to change the names of the nodes in the breadcrumb displayed above the list name.
So far I have:
created a class inheriting from
System.Web.SiteMapProvider,
added ...
I'm working on my first ever ASP.Net project, and I seem to have been thrown in the deep end right away. All of my site files are stored in a database, so I'm using a VirtualPathProvider to access them. That part works well, but then I needed a site map that would dynamically pick up all the files since the user will add/delete files a...
We have a website that uses a bog-standard default sitemap with security trimming as follows:
<siteMap defaultProvider="default" enabled="true">
<providers>
<add siteMapFile="~/Web.sitemap" securityTrimmingEnabled="true" name="default" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToke...
I'm trying to write my first very own SiteMapProvider subclass. It is meant to be populated dynamically using a bunch of different database lookups, much like all of the examples I've found on the web.
However, there are a whole bunch of things that are quite unclear to me. Here are my two first questions:
Why is StaticSiteMapProvider...
Hi,
i have a static .sitemap file for my site. I want to add 5 subcategories for each maincategory (@Products) so they will appear in my menu (menu is custom helper which works, i just need to add to the Sitemap.Provider some pages at runtime...) Is this possible?
Sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<node cont...
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 have a question similar to the one described here:
ASP.NET URL Routing with WebForms - Using the SiteMap
My ASP.Net WebForms webapplication has a Sitemap, similar to this:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Root">
<siteMapNode url="...
I have a custom sitemapprovider which loads pages from the database.
Pages (pageid, fk_pageid (parent), title, url, show_in_menu)
I would like to globalize/localize the title of the page. What's the best method?
...
I find the MvcSiteMapProvider very interesting. But will I somehow be able to generate, autoload (or something in that category) the route (declaration) for my website?
...
I have a custom menu, which leverages the standard asp.net sitemap. It works well but some of my pages are dynamically generated by URL rewriter, so they don't sit in the sitemap XML file. At the moment I rolled a custom solution which shows/hides menu items via CSS class and a programmatic check of the role that the user is in. It works...
Hi all,
I am looking for a MVC SiteMap provider in which I can specify area as well, along with controller and action. Did anyone use a SiteMap provider that supports MVC 2 Areas ?
Help will be greatly appreciated in this regard.
Thanks
...
im trying to figure out how to authorize only unauthenticated users. i have a sign in tab displayed in my site map and i only want it to show up when the user hasnt yet logged in.
...
I'm using my own SiteMapProvider which is just inherited and little bit rewritten System.Web.XmlSiteMapProvider.
I want to return different siteMapNode for clients and for managers. Or maybe the same but with different Title property.
Is it possible? If yes, how can I do that?
...
I roll my own SiteMapProvider inheriting System.Web.XmlSiteMapProvider.
I want to override logic of checking user to be in a role specified in siteMapNode's property roles:
<siteMapNode url="Add.aspx?type=user" title="Add user" roles="admin" />
How can I do that? Which class's member does XmlSiteMapProvider call to check that if secu...
I need to get know how SiteMapProvider.IsAccessibleToUser() works.
Built-in XmlSiteMapProvider calls HttpContext.User.IsInRole() which uses System.Security.Principal.GenericPrincipal in case of forms authentication.
Where does the current user gets its roles? Which provider loads this kind of information? I want to overload it and use ...
I have custom SiteMapProvider and RoleProvider that works together properly: IsAccessibleToUser returns false if current user's role isn't mentioned in SiteMapNode.Roles for page requested.
So breadcrumbs or menu doesn't show an item.
But user still can type now showed URL directly and open a page. How can I block such behavior?
Also ...
I have a site map configured as such:
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="www.website.com/index.aspx" title="Site Name" description="">
<siteMapNode url="home.aspx" title="My Home" description="My Home" Group="Active">
<siteMapNode url="Search.aspx" title="Search" de...