Sharepoint 2010: How to remove “Edit in Sharepoint Designer”

In Sharepoint Foundation 2010, there are menu items and ribbon buttons that allow you to edit things in Sharepoint Designer. If you haven’t got Designer installed, you get a pop-up a message, saying “Download Sharepoint Designer”. This even happens if you disallow Sharepoint Designer in the Web Application properties.

The easiest way to get rid of those items is to modify two files in the Sharepoint installation. Remember to make copies of the original files before editing. Also remember that those files might get overwritten by any Sharepoint service pack or cumulative update.

  • Remove the following lines from
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14 \TEMPLATE\GLOBAL\v4.master
    <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditSite"
    Text="<%$Resources:wss,siteactions_editsite%>"
    Description="<%$Resources:wss,siteactions_editsitedescription%>"
    ImageUrl="/_layouts/images/SharePointDesigner32.png"
    MenuGroupId="300"
    Sequence="304"
    UseShortId="true"
    ClientOnClickScriptContainingPrefixedUrl="EditInSPD('~site/',true);"
    PermissionsString="AddAndCustomizePages"
    PermissionMode="Any"
    />
  • Remove the following lines from
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14 \TEMPLATE\GLOBAL\XML\CMDUI.XML
    <Button
    Id="Ribbon.Library.CustomizeLibrary.EditList"
    Sequence="20"
    Command="EditList"
    Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
    Image16by16Top="-208"
    Image16by16Left="-192"
    Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
    Image32by32Top="-384"
    Image32by32Left="-352"
    LabelText="$Resources:core,cui_ButEditLibrary;"
    ToolTipTitle="$Resources:core,cui_STT_Title_ButEditLibrary;"
    ToolTipDescription="$Resources:core,cui_STT_ButEditLibrary;"
    TemplateAlias="o2"
    />
  • In the same file, remove the following lines:
    <Button
    Id="Ribbon.List.CustomizeList.EditList"
    Sequence="20"
    Command="EditList"
    Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
    Image16by16Top="-208"
    Image16by16Left="-192"
    Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
    Image32by32Top="-384"
    Image32by32Left="-352"
    LabelText="$Resources:core,cui_ButEditList;"
    ToolTipTitle="$Resources:core,cui_STT_Title_ButEditList;"
    ToolTipDescription="$Resources:core,cui_STT_ButEditList;"
    TemplateAlias="o2"
    />
  • In the same file, remove the following lines:
    <Button
    Id="Ribbon.Calendar.Calendar.CustomizeList.EditList"
    Sequence="10"
    Command="EditList"
    Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
    Image16by16Top="-208"
    Image16by16Left="-192"
    Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
    Image32by32Top="-384"
    Image32by32Left="-352"
    LabelText="$Resources:core,cui_ButEditList;"
    ToolTipTitle="$Resources:core,cui_STT_Title_ButEditList;"
    ToolTipDescription="$Resources:core,cui_STT_ButEditList;"
    TemplateAlias="o1"
    />

  • Restart IIS + clear your browser cache. The menu items and buttons for Designer should be gone.

8 thoughts on “Sharepoint 2010: How to remove “Edit in Sharepoint Designer””

  1. This is great! Thanks.
    I had to do one extra step to see the changes. I deleted everything under
    C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files

  2. 您好!楼主,请问在sharepoint designer 2010中,如何设定不同的登录用户来进行Ribbon的编辑?

    1. I only see "Form Web Parts" and "New Quick Step" under the "Customize List" section, so something must be different in our installations.

      Thanks for the link, I have seen this as well, but it seemed a bit complicated to me, so I didn't do that. But probably better than messeing around with template files...

      Good to hear that you could solve the problem and thanks for posting the solution here.

  3. The ribbons are:
    when in list default view, click on List Tools >List at top, a Ribbon shows up where there is a List Settings button along with others, and an Edit List button with the icon of SPD.

    The same ribbon shows up when clicking on Library Tools
    The same ribbon shows up when clicking on Calendar Tools

    1. Strange, if I am on a list and I click on "List Tools" > "List", I see the following in the "Settings" area on the very right of the Ribbon:

      List Settings
      List Permissions
      Workflow Settings

      and no "Edit List" button. Same with the other two Ribbons. We are not using the absolute latest version of Sharepoint (about a year old), maybe something changed?

  4. Hi Isabel

    In which ribbon is that exactly? It is normally in three ribbons: List, Library and Calendar. Each deleted section reflects one ribbon.

  5. Hi, your instruction is very helpful. I got the "Edit in SPD" removed from Site Action (we use a custom master page so I edited there)

    But the Edit List buttion still in the Ribbon after I removed the button section from CMDUI.xml (we did not customize the ribbon, so this should be the place to remove them). I ran iisreset and cleared the browser cache.

    Do you have any idea why the ribbon button still there?

    Thanks for any advise!

Leave a Reply to Isabel Cancel reply

Your email address will not be published. Required fields are marked *