manoj´ssharepointblog

SharePoint Blog

Missing Publish Tab and Containing Incorrect Buttons on Page Tab

Leave a comment

Typically, the ribbon on a Publishing Page will have several tabs: Browse, Page, and Publish. The Page tab in the ribbon itself will contain buttons that are specific to Publishing Pages. It should look like something like this:

actual

However, if your Page Layout has custom code-behind, you might notice that your Publishing Page, when you edit it, is missing the Publish tab, and the Page tab contains buttons that are more consistent with a “normal” SharePoint page than a Publishing Page, like this:

missing

This behavior happens when the Page Layout you’re using has a custom code-behind class and you override the OnLoad method in your code-behind, but you forget to add base.OnLoad(e) to the method. Adding the base.OnLoad(e) method to your overriden method will return the ribbon to its normal state. Or some time base.OnLoad is placed under the !IsPostback, If you place the  base.OnLoad outside the !IsPostBack will fix the problem.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s