I encountered this problem when developing a custom page layout on SharePoint.

Symptoms:

1. Page Editing Toolbar is missing

2. In the Site Actions menu, Show Page Editing Toolbar is not available. Instead, Hide Page Editing Toolbar is showed but disabled.

3. The page is using a custom master page.

If you are facing the same issue, the problem most likely lies in the custom master page. In my case, I found out that the master page is missing the all important PublishingWebControls:AuthoringContainer control that renders the Page Editing Toolbar in edit mode.

To resolve this, you must add the following in the master page:

1. register the necessary prefixes

<%@ Register Tagprefix=”PublishingWebControls” Namespace=”Microsoft.SharePoint.Publishing.WebControls” Assembly=”Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c” %>

<%@ Register Tagprefix=”PublishingConsole” TagName=”Console”
src=”~/_controltemplates/PublishingConsole.ascx” %>

2. add the control to the desired location

<PublishingWebControls:AuthoringContainer id=”authoringcontrols”
runat=”server”>
<PublishingConsole:Console runat=”server” />
</PublishingWebControls:AuthoringContainer>

The Page Editing Toolbar should be available after you have done this.

Advertisement