Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.