Sunday, 21 December 2014

Creating Page Layouts in SharePoint 2010


Problem

ManySharePoint portals require having various page layouts/templates available while creating a new pages. This tip explores multiple approaches in providing different options. 

Solution

A "Page Layout" is a page template that controls how the page looks and exactly which elements (such as lists and libraries) should be present on the page. We'll see how to create page layouts in SharePoint 2010 using these approaches below:
  • Creating Page Layout via SPD " SharePoint Designer 2010".   
  • Creating Page Layouts via default OOTB "Out of the box" SharePoint web browsable layouts.

1. Creating Page Layout via SPD "SharePoint Designer 2010":

- Click on Start > SharePoint > Microsoft SharePoint Designer 2010:

1

- Click on "Sites" > Type your "Site name" > Open:
2
- Click "Page Layouts" under "Navigation":
3
- Click on "New Page Layout" under the "New- Page Layouts" tab > Select "Page layout Content type" as the "Content Type Group" and "Article Page" as the "Content Type Name" then fill in the "URL Name" and "Title" as desired for the new page layout:
4
- Here is the created page layout for "MSSharePoitnTipsSPDLayout.aspx". We can play around and change the HTML as we wish:
5



-  Let's see where our newly created "MSSharePointTips SPD Layout" page layout is stored. Go to the site > Site Actions "Menu" > Site Settings":
6
- Click "Master pages and page layouts" under the "Galleries" section:
7
- We can now see our newly created page layout "MSSharePointTipsSPDLayout.aspx":
8.0
8.1
-  Now, let's see how we can create a SharePoint page based on the new "MSSharePointTips SPD Layout" page layout. Click on the "Site Actions" menu > "View All Site Content":
9
- Click on "Pages" under the "Document Libraries" section:
10
- Click "New Document" under "Documents - Library Tools" ribbon menu items > "Page" :
11
- Type the page title and description then choose "(Article Page) MSSharePointTips SPD Layout" from "Page Layout" list > Create :
12
- Here's the created new page inherited from our "MSSharePointTips SPD Layout" custom page layout :
13



2. Creating Page Layouts via default OOTB "Out of the box" SharePoint web browsable layouts:

- Click "Site Actions" menu > "Site Settings" :
14
- Click "Master pages and page layouts" under the "Galleries" section:
15
- Click "New Document" under the "Documents - Library Tools" ribbon menu > the "Page Layout":
16
- Select "Page layout Content types" as the "Content Type Group" and "Article Page" as the "Content Type Name". Then type a desired "URL Name" , "Title" and "Description"  for the new page layout:
17



-  We can see our new page layout "MSSharePointTipsBrowsableLayout.aspx":
18.0
18.1
-  Now, let's see how we can create a SharePoint page based on the newly created "MSSharePointTips SPD Layout" page layout. Click on the "Site Actions" menu > then "View All Site Content":
19
- Click on "Pages" under the "Document Libraries" section:
20
- Click "New Document" under the "Documents - Library Tools" ribbon menu > select "Page":
21
- Type the page title and description then choose "(Article Page) MSSharePointTips Browsable Layout" from the "Page Layout" list > then "Create":
22
- Here is the created new page inherited from our "MSSharePointTips Browsable Layout" custom page layout:
23



Reference:

http://www.mssharepointtips.com/tip.asp?id=1125&page=1

No comments:

Post a Comment