Saturday, May 12, 2012

Difference between Master Pages, Page Layouts and Content Type

Master Pages are used by all pages in the site and used specify the common elements that all pages in the site should have. The Master Page is nothing but a text file with .master extension. The key is Master Pages is used across all the pages in the site. In SharePoint every page need to have Master Page. By default SharePoint specify default.master as the Master Page. So whether you like it or not a page in SharePoint will have a Master page (even if you do not specify one).

The Page Layout is specifically used in the SharePoint Publishing Site. A page layout is a file with aspx extension. A page layout also will be associated with a master page and inherits elements from Master Page. A SharePoint publishing site will have Pages document library where the items contain the content of the page. Each page will have a content type and columns in the content type will be used to create the content of the page. The item in the pages document library will be associated with a content type (for contents) and page layout(to specify the layout).

Hope the above makes things clear.

No comments:

Post a Comment