Tuesday, October 18, 2011

How to hide SharePoint ribbon row for anonymous users in SharePoint 2010

 How to hide SharePoint ribbon row for anonymous users in SharePoint 2010

To hide the site Action Ribbon Row (SiteActions) for anonymous users you must put "s4-ribbonrow" div inside   "spsecuritytrimmedcontrol" Tag 

1- Open your masterpage with SharePoint designer
2- Find the ribbon row or search for div "ribbonrow"
3- before the div <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">

<sharepoint:spsecuritytrimmedcontrol id="SPSecurityTrimmedControl2" runat="server" permissionsstring="ManageSubwebs">

4- after the end of the ribbon div close the security tag </div>

</sharepoint:spsecuritytrimmedcontrol>

5- Done check with anonymous user. :) 

--
Shahzad Afzal
http://www.pakistanprobe.com/



No comments:

Popular Posts