Wednesday, February 1, 2012

SharePoint 2010 Master Pages

Master pages define a common structure for all Web pages. By default, when a page is requested, the master page and content page are combined to produce a single page. The page contains the layout elements of the master page along with the content from the content page. By using a master page, all content and application pages share the same page structure and have a consistent look and feel.
Master pages contain static text and controls that appear on all pages. They also contain one or more ContentPlaceholder controls. Content placeholders define the regions where information that is stored in a content page appears. Custom master pages must have the same controls and content placeholders as the default master page.
The content placeholders for application and content pages are now the same in Microsoft SharePoint Foundation. By having the same content placeholders, content and application pages can use the same master page for a more consistent look and feel across a site.
SharePoint uses v4.master as its primary master page. All content and application pages use v4.master. When the product is installed, the master pages are located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\GLOBAL directory. As long as this master page is not customized, its page definition is cached on the front-end Web server and shared across sites. If the master page is edited for a particular SharePoint Foundation site, the edited copy of the master page file is stored in the content database.

v4.master: This is the default team site master page used with version 4 of the UI. It provides the ribbon bar and all of the other new visual UI changes such as the site actions menu on the left side. This will be the master page you typically use.
If you have upgraded to SharePoint 2010 and haven’t switched to the new UI yet, the old master page is still in default.master. This looks like the master page you use in SharePoint 2007 or version v3. It doesn’t have the ribbon bar and the site actions menu is still on the right side.
Changes from the v3 version…
Site actions have been updated for 2010 and they appear on left, Ribbon bar is available

Simplev4 Master pages
SharePoint Foundation includes seven pages that use the simplev4.master master page file. These pages render even if the site master page is broken or not accessible to the current user.
1. Login.aspx
2. SignOut.aspx
3. Error.aspx
4. ReqAcc.aspx
5. Confirmation.aspx
6. WebDeleted.aspx
7. AccessDenied.aspx


minimal.master: This is a slimmed down master page with just nothing on it. It doesn’t even have navigation. The Search Center uses this page by default.

simple.master: This page is used for login and error pages. It can’t be customized.
Pages using simple.master
· Login.aspx
· SignOut.aspx
· Error.aspx
· ReqAcc.aspx
· Confirmation.aspx
· WebDeleted.aspx
· AccessDenied.aspx

default.master: Sites upgraded from SharePoint 2007 use this unless they are changed to use a v4 version. It has Site actions on right side and are same as SharePoint 2007 version and No ribbon bar.
To customize any of these pages, a replacement page must be created and stored in the _layouts directory on the server.

Other Master Pages: Other miscellaneous master pages are generally not manipulated when branding a site.

These are:
· application.master
· applicationv4.master
· dialog.master
· layouts.master
· layoutsv3.master
· pickerdialog.master
· rtedialog.master
· simple.master
· simplev4.master
· mwsdefault.master
· mwsdefaultv4.master
· admin.master
· popup.master

No comments:

Post a Comment