Creating a Custom Page Layout for Publishing Portal in SharePoint 2010


Publishing in Microsoft SharePoint Server 2010 is fundamentally a means of authoring and displaying information by using a set of templates. With regard to publishing in SharePoint Server 2010, there are two fundamental templates to understand: master pages and page layouts. Master pages and page layouts dictate the overall look and feel of your SharePoint site. Master pages contain controls that are shared across multiple page layouts, such as navigation, search, or language-preference for multilingual sites. Page layouts contain field controls and Web Parts. By using master pages, you can provide a consistent look and feel for your site. You can use master pages to position items that must be shared by all pages, such as navigational controls, company logos, and copyright notices. Within master pages, you can use user controls (.ascx controls), Web server controls, and Web Parts. The top-level SharePoint Server site for a site collection hosted on SharePoint Server 2010 has a special document library called the Master Page and Page Layout Gallery. All page layouts and master pages are stored in this document library. The Master Page and Page Layout Gallery supports versioning and workflow, so you can use those features for your master pages and page layouts. Page layouts can be used by all page instances that are based on that page layout. Master pages can be used by all page instances in a site. Page instances based on the same page layout in different sites can use different master pages.
 
For doing this, navigate to the top level site of the Site Collection then Site Actions / Site Settings / Master pages (under the Galleries section). Then switch over to the Documents tab in the Ribbon and then click New > Page Layout.

1.gif
 
Select an Article Content Type to associate with; give it an URL and Title. There's also a link on this page to create a new Content Type. You might be interested in doing this if you wanted to say, add more editing fields or metadata properties to the layout. For example if you wanted to add another Managed Metadata column to capture folksonomy aside from the already included "Wiki Categories" Managed Metadata column.

2.gif
 
Now click OK.
 
Now open the page that we created in SharePoint Designer.

3.gif
 
Now you can choose to build your page manually by dragging your SharePoint Controls onto the page and laying them out as you'd like. You can even copy another article page and paste it into the page then arrange it at your convenience.
 
Check-in, publish, and approve the new Page Layout. Side note: I like to add the Check-In/Check-Out/Discard or Undo-Checkout buttons to all of my Office Application's Quick Access Toolbars for convenience.

Almost there! Navigate to your publishing site, in this case the Enterprise Wiki Site, then go to Site Actions > Site Settings > Page layouts and site templates (Under Look and Feel). Here you'll be able to make the new Page Layout available for use within the site.

4.gif
 
Specify the page that we created now and click OK.

5.gif
 
Now you are almost done.
 
Go to Site actions then select View all site Content.
 
Then click on Create link. Select Page from the left navigation.
 
Then click on Publishing Page and click on Create.

6.gif
 
Now you can see that our custom page template was also added; select that and create a new publishing page from the new page template.

7.gif

Up Next
    Ebook Download
    View all
    Learn
    View all