I have created a member group and have restricted public access to a page such that only members of this group may have access. In our site's navigation, I want security trimming enabled so that you can only see the sections which your login allows you to visit. I tried enabling security trimming in the web.config file by setting securityTrimmingEnabled="true" under the siteMap provider, but the links are still showing up in our navigation. Do I need to change the xslt for our navigation such that security trimming will work? Is there something that I have missed? Thanks for any help.
Thanks for your help Dan. That seems to have nearly fixed the problem. I have one remaining issue. The navigation now seems to have security trimming, but will show the protected links for anyone who is logged on, regardless of their member group. Is there a way to make sure that the security trimming is restricted to only those member groups that can actually access the page?
Security Trimming
I have created a member group and have restricted public access to a page such that only members of this group may have access. In our site's navigation, I want security trimming enabled so that you can only see the sections which your login allows you to visit. I tried enabling security trimming in the web.config file by setting securityTrimmingEnabled="true" under the siteMap provider, but the links are still showing up in our navigation. Do I need to change the xslt for our navigation such that security trimming will work? Is there something that I have missed? Thanks for any help.
This should test for the that case
It's basically "If either this path isn't protected, or it is protected and the user is logged in)
Dan
Just realised I'm using a "parent" parameter, so here's the full xslt for context (it's for a subnav in this case)
Dan
Thanks for your help Dan. That seems to have nearly fixed the problem. I have one remaining issue. The navigation now seems to have security trimming, but will show the protected links for anyone who is logged on, regardless of their member group. Is there a way to make sure that the security trimming is restricted to only those member groups that can actually access the page?
Ahh, of course. For that you should look at http://our.umbraco.org/wiki/reference/umbracolibrary/hasaccess. ; it seems to do exactly as you need. I'll read more closely next time!
Dan
That worked - thanks for your help, Dan.
is working on a reply...