A Page Layout in SharePoint allows you to create a template for a page that users apply to their content for a consistent layout of information. Unless master page there could be different page layouts for different page types. For e.g. in a product catalog we could have single master page and a different page layout for each category. An electronics pages might need image placeholder but on some other category not.
We basically design the structure on the content placeholder of Master Page.
Location of Page Layout:
Just like page master pages Page Layouts are also available in Gallery available in Site Settings
How is Master Page and Page Layout connected:
Each page layout has a MasterPageFile element which decides which master page will render when any page with the page layout will render.
Please layouts are available in the publishing site template and for that we will need a publishing content types.
Click here to learn how to create Page Layouts.
We basically design the structure on the content placeholder of Master Page.
- Inserting Webparts and Webpartzones
- Creating the layout of the pages (within the bounds of the master page)
- Controlling page-level design elements.
- Including page-level css files to override master page styles
- Including custom codes for a particular type of pages (javascript, etc.). Please note we could also add JS ro master page but that will apply to all the pages.
- Things that occur only on this page layout, not site-wide
Location of Page Layout:
Just like page master pages Page Layouts are also available in Gallery available in Site Settings
How is Master Page and Page Layout connected:
Each page layout has a MasterPageFile element which decides which master page will render when any page with the page layout will render.
Please layouts are available in the publishing site template and for that we will need a publishing content types.
Click here to learn how to create Page Layouts.