Steps To Create Page Layouts In SharePoint 2013 Using SharePoint Designer

Introduction

Page layouts are page templates that define how a page should look, what page fields and content fields are present, and which elements should be present on the page. Users can, then, create new publishing pages that are based on these page layouts format. In this article, I will explain how to create Page Layouts in SharePoint 2013, using SharePoint Designer.

Pre-Requisites

  1. Open SharePoint Designer.
  2. Open newly created SharePoint site in SharePoint Designer.



  3. Create new Content Type by clicking on “Content Type” from left navigation.



  4. Click "New Content Type" from top Content Type tab.



  5. Give name, description, parent content type, and content type group value.



  6. Custom content type got created.


Create Page Layouts

  1. Click on Page Layouts in left navigation menu.



  2. Click on New Page Layout in top menu.



  3. Select content type group and content type name. Give URL name and title for new page layout.



  4. New page layout got created as below.



  5. Place the content inside the PlaceHolderMain.
    1. <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">   
    2. </asp:Content>   
  6. Insert table to the page layout from Insert -> Table.



  7. Drag and drop the site columns from content type, in the table we inserted.



  8. After insertion of all the site columns, table looks like the below code.
    1. <table style="width: 100%">  
    2.     <tr>  
    3.         <td>First Name</td>  
    4.         <td>  
    5.             <SharePointWebControls:TextField FieldName="4a722dd4-d406-4356-93f9-2550b8f50dd0" runat="server"></SharePointWebControls:TextField>  
    6.         </td>  
    7.     </tr>  
    8.     <tr>  
    9.         <td>Company</td>  
    10.         <td>  
    11.             <SharePointWebControls:TextField FieldName="038d1503-4629-40f6-adaf-b47d1ab2d4fe" runat="server"></SharePointWebControls:TextField>  
    12.         </td>  
    13.     </tr>  
    14.     <tr>  
    15.         <td>Address</td>  
    16.         <td>  
    17.             <SharePointWebControls:NoteField FieldName="fc2e188e-ba91-48c9-9dd3-16431afddd50" runat="server"></SharePointWebControls:NoteField>  
    18.         </td>  
    19.     </tr>  
    20. </table>  
  9. Make sure that “SharePoint Server Publishing Infrastructure” is active on the site.



  10. Save the newly created page layout and publish it.


  11. Open the SharePoint site. Go to Site Action -> Site Content -> Page Library.



  12. Go to library settings -> Add from existing content type. Select newly created page layout content type “ExampleContentType” and add to the content types.



  13. Go the page library, click on Files -> New Document -> “ExampleContentType” got added.


  14. Give Page Title, Description, and URL value. Create new page using “Example Page Layout”.


  15. Our new page got created with the “Example Page Layout”.


  16. Open the newly created page. It will apply our custom page layout.


Summary

Thus, you have learned how to create Page Layouts in SharePoint 2013, using SharePoint Designer.

Up Next
    Ebook Download
    View all
    Learn
    View all