I want to hide pages from user types. I'm using "Role based access protection" on a section I do not want visible to certain user types. However, the link still appears visible to all users. I want this link only visible to certain user types. How can I do this?
I added this to my 3 levels of navigation, and it works perfectly. Which is of great relief.
However, I have created a "print this page" macro that allows users the print the current page, the parent above and the parent above that. Which means I have to figure out a way to block users from printing the "hidden" pages.
JV, although this has nothing to do with your problem, you might want to consider rendering an alternate template for your page, instead of adding the node-id to the querystring, the path would look something like this: /path/to/my/page/alternate-template.aspx
Hide links from user types
I want to hide pages from user types. I'm using "Role based access protection" on a section I do not want visible to certain user types. However, the link still appears visible to all users. I want this link only visible to certain user types. How can I do this?
JV,
May have a look at this wiki entry...
Hope this helps.
Regards,
/Dirk
Thanks Dirk,
I added this to my 3 levels of navigation, and it works perfectly. Which is of great relief.
However, I have created a "print this page" macro that allows users the print the current page, the parent above and the parent above that. Which means I have to figure out a way to block users from printing the "hidden" pages.
Does anyone have some advice?
Thanks,
JV
Can't you use the HasAccess check in your "print this page" macro?
Hi Lee,
Currently I've added it in, but not sure if this is correct:
JV, although this has nothing to do with your problem, you might want to consider rendering an alternate template for your page, instead of adding the node-id to the querystring, the path would look something like this: /path/to/my/page/alternate-template.aspx
Hi JV, I'd say you'd need to add the IsProtected and HasAccess checks to the "printPage" template too.
I'd agree with Stephan's suggestion. I use an alternative template (altTemplate) for my print pages. Read more about altTemplate here.
http://www.nibble.be/?p=42
Cheers, Lee.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.