SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do we hide the "Edit Page" option from Site Actions menu of a publishing site. I am able to hide "New Page" option using following xml:-

<HideCustomAction Id="HideCreatePublishingPage" GroupId="SiteActions" HideActionId="PublishingSiteActionsMenuCustomizer" Location="Microsoft.SharePoint.StandardMenu"> </HideCustomAction>

However, till now I am not able to find any option for hiding "Edit Page".

Please suggest...

share|improve this question

You can try:

<HideCustomAction 
    Id="HideEditPage"
    GroupId="SiteActions"
    HideActionId="MenuItem_EditPage"
    Location="Microsoft.SharePoint.StandardMenu" />

But it didn't work for me.

The Edit Page button is actually hardcoded into the master page. If you have a custom master page (or can create a custom master page), you can hide/comment out/delete the following control:

<SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
    Text="<%$Resources:wss,siteactions_editpage%>"
    Description="<%$Resources:wss,siteactions_editpagedescriptionv4%>"
    ImageUrl="/_layouts/images/ActionsEditPage.png"
    MenuGroupId="100"
    Sequence="110"
    ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);"
    />
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.