5

In SharePoint Designer, you can create a new Master Page or a new Publishing Master Page from Content Type. So what is the difference between a Master Page with a Content type of "Publishing Master Page" and just "Master Page".

What am I gaining from using a Publishing Master Page in a Publishing Site?

Any guidance would be appreciated.

2 Answers 2

3

The "Publishing Master Page" content type inherits from the base "Master Page" content type, yet both content types contain the same site columns (see Content Types with associated Fields for SharePoint 2010).

About publishing-enabled content types states "There are six content types that have the Publishing feature enabled." This doesn't really mean anything for the master page though, since the Publishing features are activated at the site and web levels, and the master page doesn't have any effect on this.

The biggest difference here is that it gives you a way to delineate between your standard site master page and your publishing layouts' master page. This is the difference between SPWeb.MasterUrl (Standard) and SPWeb.CustomerMasterUrl (Publishing) (see Sharepoint SPWeb - MasterUrl vs CustomMasterUrl).

WROX Professional SharePoint 2010 Development has this to say:

In SharePoint, there are two Master Page content types installed with the Publishing framework. The first is a hidden content type called System Master Page and inherits from the Document content type. This is the Master Page content type that is typically assigned to Master Pages for non-publishing sites and for System Master Pages. The second content type is called Publishing Master Page and inherits from the System Master Page. This content type is typically assigned to Site Master Pages in the Publishing framework.

0

publishing pages are stored in special document library named pages. The pages document library contains a special type of page known as publishing page.all publishing pages dynamically link to a master page using another property of the SPWeb class named Custommasterurl.

Generally you have to work with masterurl property in order to swap out the master page,in case of publishing pages you have to use customasterurl property in additionl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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