Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

How to hide Ribbon from anonymous users in SharePoint

 by Vijay Settu on Jan 18, 2012

Here you will learn how to hide Ribbon from anonymous users in SharePoint.
Comments: 0 Views: 472 Printable Version 

The below steps is to hide the Ribbon from the Anonymous User.

Step 1 : Open the Sharepoint Site eg: http://mydomain.com

Step 2 : Goto to Site Action and edit in Sharepoint designer

Step 3 : In Sharepoint Designer when we open then open the sharepoint site and then edit the make a copy
of v4.master and rename it eg: hideribbon.master
Step 4 : Locate this Line

<div id="s4-ribbonrow">

Step 5 : Change it to.

<div id="Div1" style="display:none">

Step 6 : Now find the end of the "s4-ribbonrow" tag and add following block right after it:

" <Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages"> 
    <script type="text/javascript"> 
        document.getElementById("s4-ribbonrow").style.display = "block";
    </script>
</
Sharepoint:SPSecurityTrimmedControl>"


Step 7: Save the new master page and publish it.

Step 8 : That's it now the "ribbon will be hidden in sharepoint site".v

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 
Comments not available.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor

 Blogger's Profile
Age: Not Available
Location:
Title: Developer
Joined: Jan 16, 2012
Education: Not Available
 More Blogs from this Blogger
No record available
 Latest Blogs
[Video] OnClose Handler
[Video] Storing and Loading the Window and Toolbar position
The Euclidean Algorithm
Swapping Exe Process
How Exe file is Generated by VS2005 C++ Project?
What is Exe
Header files: Multiple Inclusion problem - Solution B
Header files: Multiple Inclusion problem - Solution A
Header files: Multiple Inclusion problem - Reason
Header files: Multiple Inclusion problem
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 
Team Foundation Server Hosting
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.