Wednesday, May 26, 2010

Hide “View All Site Content” SharePoint 2010 Link

Along the same lines as hiding the Ribbon for normal site visitors, most users do not need to view the underlying site content structure. In this security trimming example I have set the PermissionsString to ManageWeb as it is primarily site owners who will use this link.


Again, this will be modifying the v4 default master page with SharePoint Designer

  • Locate this line:

SharePoint:ClusteredSPLinkButton id="idNavLinkViewAllV4"

  • Next, add the following tag above this line to add security controls:

[Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageWeb"]
Close element with the following tag:
[/Sharepoint:SPSecurityTrimmedControl]


(Note: Remember to change the [ and ] to opening and closing html tags)

No comments:

Post a Comment