Create a Page Layout in SharePoint 2013

This is a Step-by-Step tutorial on how to Create a Custom Page Layout in SharePoint 2013.We will use the new Design Manager to Create a Layout (from an existing one) and then edit it in one of the editors like Notepad.Once the layout is Created and Uploaded to Master Page Gallery, you can edit the generated html file in an editor of your choice and upload it back to the Master Page Gallery.

If you need to add SharePoint Field Controls or any other SharePoint Controls such as search box,navigation etc in your custom layout, you can use the Snippet gallery to Copy the required field Control code and paste it into your custom Layout's html file.In this post however we will only look at an example of Creating a Custom Page Layout and using it to Create a Custom Page. If you want to edit the page layout and add a code from Snippet gallery, see the upcoming post  on 'Add Snippets in Layout Page using Snippet gallery in SharePoint 2013'.

Before you begin make sure that you have Publishing Feature enabled on your site and you see "Deisgn Manager" under Look and feel.

Lets look at the detailed steps -

1. Navigate to Site Settings -> Design Manager (under look and feel).
"SharePoint 2013 Design Manager"

2. Next in Design Manager select "6. Edit Page Layouts" and then "Create a page layout"
"Create Page Layout Design manager 2013"

3. Now Create a Custom Page layout using the Article Page Content type.
"Create Custom Page Layout sharepoint 2013"

4. When the Layout is Created, it gets available in "Edit Page Layouts" list and the "Master Page gallery" of the site.The Layout Page will be in Drafts mode until you publish it as a major version.

"SharePoint 2013 Create Layout Page"

5. Next Edit the New Layout Page and save the Changes.In SharePoint 2013 for every Layout page two files - .aspx and html are created by default.
SharePoint 2013 custom layout files

For making Changes to the Custom Layout, you need to download the html file (see above - Custom page Layout.html) of your layout page and make Changes to it.The modified html file is then saved back to the MasterPage Page gallery where the corresponding .aspx file gets updated automatically.
For editing, see the detailed post on How to add Snippets from Snippet Gallery in Layout Pages in SharePoint 2013
6. Once you have updated and saved the Layout page, you need to Publish the Layout page as a major version to make it available in Layouts list.
"Page Layout Publish as Version"

7. Finally, Create a new Page with your Custom Layout.
Navigate to Site Content in Site Settings and then Open the "Pages" gallery.
"SharePoint 2013 Site Content"

SharePoint 2013 Pages Lib

Click on the 'FILES' tab and select Page.
"Create Pages SharePoint 2013"

Finally Create a new Page with your Custom Layout.
"Custom Page SharePoint 2013"
To know more about Editing the Layout Pages and how to add a SharePoint Field Control in it, take a look at Our next post on 'Add Snippets in Layout Page using Snippet gallery'.
Also see - Add an Html Master Page to SharePoint 2013 using Design Manager


Joao Ferreira said...

Great article, this worked great even with the themes from Bind Tuning

Ashish Kalmegh said...

Article is 100% accurate to what it is sharepoint develp is supposed to do

shahzadhussain said...

great 100% perfect Article..Thanks

Amber Salm said...

Thank you for this awesome guidance that helped me to learn the complete process of creating page layout. I will recommend all my friends too to follow your blog.
electronic signature for sharepoint

manisha said...

I greatly appreciate your such a knowledge sharing
iWatch service center chennai | apple ipad service center in chennai | apple iphone service center in chennai

Post a Comment

Popular Posts