in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

The SharePoint Redemption

Saving Us from Collaboration Hell

Hide Edit Page in Site Actions Menu

I had a request from a client to hide the Edit Page option under the Site Actions menu for all users without Full Control permissions.  I performed the following steps to remove the edit page option for user's without the managesubwebs right.

  1. Open the master page for the site.
  2. Find the following lines of code:

           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
            Text="<%$Resources:wss,siteactions_editpage%>"
            Description="<%$Resources:wss,siteactions_editpagedescription%>"
            ImageUrl="/_layouts/images/ActionsEditPage.gif"
            MenuGroupId="100"
            Sequence="200"
            ClientOnClickNavigateUrl="BLOCKED SCRIPTMSOLayout_ChangeLayoutMode(false);"
            />

  3. Add to the following lines to the code:
            PermissionsString="ManageSubwebs"
            PermissionMode="Any"

  4. The code should now look like:
           <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
            Text="<%$Resources:wss,siteactions_editpage%>"
            Description="<%$Resources:wss,siteactions_editpagedescription%>"
            ImageUrl="/_layouts/images/ActionsEditPage.gif"
            MenuGroupId="100"
            Sequence="200"
            ClientOnClickNavigateUrl="BLOCKED SCRIPTMSOLayout_ChangeLayoutMode(false);"
            PermissionsString="ManageSubwebs"
            PermissionMode="Any"
            />
  5. Save the master page and login with an account that does not have Full Control, but is not read only either...  The Site Actions drop down should now resemble:

Hide Edit Page

Comments

 

Links (1/15/2008) « Steve Pietrek’s SharePoint Stuff said:

Pingback from  Links (1/15/2008) &laquo; Steve Pietrek&#8217;s SharePoint Stuff

January 15, 2008 8:40 PM
 

Jim Gregory said:

I spent like 20 minutes googling to find out how to do this, and you had exactly what I needed. Thanks!

February 13, 2008 2:25 PM
 

Jay Morton said:

I followed this to the letter but it didn't work.  The Edit Page still shows and is accessible in the Site Actions menu for SP2007.  The user assigned contributor permissions for the site.

Any thoughts?

Thanks.

February 14, 2008 1:32 PM
 

Robert said:

You have to approve the page after saving, otherwise it stays in draft version and no one else will see the above fix applied.

March 19, 2008 10:49 AM
 

MOSS 2007: Hide Edit Page in Site Actions Menu at ps> get-content said:

Pingback from  MOSS 2007: Hide Edit Page in Site Actions Menu at  ps&gt; get-content

April 1, 2008 8:14 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts