Skip to main content

How to hide ribbon row when enabling anonymous access in SharePoint 2010

enable anonymous access to your site the ribbon row will appear for anonymous users but without "site actions" menu and it will be "Login" link but if you need to hide all this row you have to do the following
1- Open your masterpage with SharePoint designer
2- Find the ribbon row Search on "ribbonrow"
3- before the div that holds the ribbon add this tag

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



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

Comments

Popular posts from this blog

Publishing SharePoint List InfoPath Form to a new location

Needed to move it from Dev to Production. File > Publish > Export Source Files. Close InfoPath Go to folder where Source Files are saved, open Manifest.xsf.  Find all instances of the URL and replace them with the new URL - there should be five. If you have secondary data connections, update those also. I use Notepad++ and “replace all” so it just takes a second.  Save the manifest.xsf file and close. Now right click on the manifest.xsf and select Design to open it back up in InfoPath.  Click on File >Publish and verify the URL is correct in the “Publish form to a SharePoint List” section”.