Posted by: techsavygal | December 2, 2009

How to hide site actions on SharePoint 2007 wss 3.0?

Interestingly, this is a very common requirement on MOSS 2007 and i found a solution for this from Meldat and Mark Wagner as below:

  1. Go to “Site Actions” ==> “Site Settings”
  2. Under Galleries, click on “Master Pages”
  3. Select default.master and select “Edit in Microsoft Office SharePoint Designer”.
  4. In “Design” view locate “View All Site Content” on the left-hand-site navigation bar and click on it.
  5. Go to “Code” view. You will see the following code highlighted:

<Sharepoint:SPSecurityTrimmedControl runat=”server” PermissionsString=”ViewFormPages“>
  <SharePoint:SPLinkButton id=”idNavLinkViewAll” runat=”server” NavigateUrl=”~site/_layouts/viewlsts.aspx” Text=”” AccessKey=”“/>

  1. Change the PermissionString attribute value of the Sharepoint:SPSecurityTrimmedControl XML element from ViewFormPages to BrowseDirectories.
  2. Save the default.master. If you login as an anonymous user you will not see the “View All Site Content” link. However when authenticated you will see this option.
NOTE: The “BrowseDirectories” permission is common to both the “Members” and “Owners” group permission levels, but is not set for the “Limited Access” (anonymous users) permission level. 



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: