Hiding Sharepoint 2010 Ribbon for anonymous users
We are currently developing a
Sharepoint 2010
based website for a leading project management company in
Australia. Since this website is a public website the Ribbon bar has to be hidden for anonymous users. We tried hiding the ribbon using style sheet but then it hides the ribbon even for logged in users. Then we found this LoginView control that could be used for displaying different information to anonymous users and logged-in users.
1. Add a LoginView control to the Sharepoint 2010 master page
2. Add AnonymousTemplate section to the LoginView Control
3. Place the entire SPRibbon control within the Anonymous template
That's it now the Ribbon control will be invisible to Anonymous users.
Popular tags: Sharepoint 2010
Posted @ Friday, August 26, 2011 12:32 AM by Graham
Hi
This is exactly what I am attempting to implement.
It causes a bug for me.
When logged in it is necessary to hit the Edit Page link twice to invoke page edit.
Something to do with SP ajax call.
Did you encounter this?
If so how did you solve it.
Thanks,
Graham
Loading, please waiting...