hit counter script
Skip to main content

Go Search
SharePoint for End Users
  

 Other Blogs

  EndUserSharePoint.com by Mark Miller
  Microsoft SharePoint Team Blog
  Michael Gannotti on SharePoint+
  SharePoint Design by Heather Solomon
  Asif's Blog by Asif Rehmani
  Ian’s SharePoint Blog by Ian Morrish
  SharePoint Demystified
  Siolon - Chris Poteet
  SharePoint Guru - Rod Stagg
SharePoint for End Users > Posts > Preview of default content placeholders in a SharePoint master page
Preview of default content placeholders in a SharePoint master page
If you’ve spent much time in SharePoint Designer 2007, you know what content placeholders are, and you know that you need to understand them before you start modifying master pages on a SharePoint site.
 
For those of you who haven’t worked with content placeholders, here’s an overview…
 
A content placeholder is a piece of code (starts with <asp:ContentPlaceHolder… >) that exists on a master page. It works together with a piece of code called a content region (starts with <asp:Content… >) that exists on a content page. Content placeholders are used to designate parts of the master page that will display replaceable content, the content that originates from a content page. This is how master pages are able to serve as templates for other pages on your web site.
 
You establish the general look and feel of your site in a master page—the colors, logos, global navigation, header and footer information. Once you establish the look and feel on a master page, you designate parts of the page that will display unique content originating from a content page, such as corporate documents, company or team events, and business forms. As a SharePoint site, you also need to consider SharePoint collaboration features, like lists, libraries, and wikis. To integrate a master page with your content pages, you use content placeholders.
 
Where can I view, create, and manage content controls?
 
To see the content placeholders that are being used on your SharePoint site, open your site's default master page in SharePoint Designer.
 
If you want to change the value of a content placeholder for your entire site, make the change to the default master page. If you want to change the content inside of a placeholder for a content page on your site, make the change to the content page.
 
What do content placeholders look like in SharePoint Designer?
 
When you open a master page in SharePoint Designer, you see this:
 
Master page
 
(Tip: You may need to turn on the Empty Containers and Visible Borders visual aids in Designer to view the master page this way.)
 
To view the default content placeholders, open the Master Page toolbar. You do this by clicking View > Toolbars > Master Page. A floating toolbar appears. Click the down arrow and then choose one of the content placeholders (see figure).
 
Master Page toolbar
 
This highlights the content placeholder on the master page, which in this case is the PlaceHolderTitleBreadcrumb content control.
 
PlaceHolderTitleBreadcrumb content control
 
Okay enough. Show me a preview of these content placeholders
 
On a Windows SharePoint Services 3.0 master page (Default.master), there are 30 default content placeholders.
 
I’ve listed them below, along with a preview of what each content placeholder looks like on your final web pages. The preview is, in effect, a combination of the content placeholder from the master page and the contents of the corresponding content region from the content page. I’ve highlighted the content placeholder with a red outline to make it easier to see.
 
There are a few content placeholders that have no visual representation. For example, the PlaceHolderBodyAreaClass content placeholder serves as a placeholder for styles. I placed these content placeholders at the end, about where they appear on the master page.
 
PlaceHolderGlobalNavigationSiteMap
Site map used by the global navigation breadcrumb
PlaceHolderGlobalNavigationSiteMap
 
PlaceHolderGlobalNavigation
Global navigation breadcrumb
PlaceHolderGlobalNavigation
 
PlaceHolderSiteName
Site name
PlaceHolderSiteName
 
PlaceHolderSearchArea
Search box area
PlaceHolderSearchArea 
 
PlaceHolderTopNavBar
Top navigation area
PlaceHolderTopNavBar
 
PlaceHolderHorizontalNav
Top navigation menu for the page (defaults with the Home tab)
PlaceHolderHorizontalNav
 
PlaceHolderPageImage
Page icon in the upper-left area of the page
PlaceHolderPageImage
 
PlaceHolderCalendarNavigator
Date-picker for navigating a calendar, when enabled
PlaceHolderCalendarNavigator
 
PlaceHolderTitleAreaSeparator
Displays shadows for the title area
PlaceHolderTitleAreaSeparator
 
PlaceHolderLeftNavBarDataSource
Data source for the left navigation menu
PlaceHolderLeftNavBarDataSource
 
PlaceHolderLeftNavBarTop
Top of the left navigation area
PlaceHolderLeftNavBarTop 
 
PlaceHolderLeftNavBar
Left navigation area (contains the Quick Launch)
PlaceHolderLeftNavBar
 
PlaceHolderLeftNavBarBorder
Border element on the left navigation bar
PlaceHolderLeftNavBarBorder
 
PlaceHolderLeftActions
Bottom of the left navigation area
PlaceHolderLeftActions
 
PlaceHolderPageTitleInTitleArea
Page title shown immediately below the breadcrumbs
PlaceHolderPageTitleInTitleArea
 
PlaceHolderPageDescription
Description of the page contents
PlaceHolderPageDescription
 
PlaceHolderTitleBreadcrumb
Main content breadcrumb area
PlaceHolderTitleBreadcrumb
 
PlaceHolderTitleLeftBorder
Left border of the title area
PlaceHolderTitleLeftBorder
 
PlaceHolderTitleRightMargin
Right margin of the title area
PlaceHolderTitleRightMargin
 
PlaceHolderBodyLeftBorder
Border element for the main page body
PlaceHolderBodyLeftBorder
 
PlaceHolderMain
Main content of the page
PlaceHolderMain
 
PlaceHolderBodyRightMargin
Right margin of the main page body
PlaceHolderBodyRightMargin
 
PlaceHolderMiniConsole
A place to show page-level commands (for example, the Edit Page, History, and Incoming Links WIKI commands)
PlaceHolderMiniConsole
 
WSSDesignConsole
The page editing controls when the page is in Edit Page mode
WSSDesignConsole
 
PlaceHolderNavSpacer
The width of the left navigation area
PlaceHolderNavSpacer
 
PlaceHolderFormDigest
The "form digest" security control
PlaceHolderFormDigest
 
PlaceHolderUtilityContent
Extra content at the bottom of the page
PlaceHolderUtilityContent
 
SPNavigation
Used for additional page editing controls. (Empty by default in Windows SharePoint Services 3.0.)
SPNavigation
 
PlaceHolderBodyAreaClass
Additional body styles in the page header
PlaceHolderBodyAreaClass
 
PlaceHolderTitleAreaClass
Additional styles in the page header
PlaceHolderTitleAreaClass
 
For more information
 
For more information on default content placeholders, including how to modify them in SharePoint Designer, see the article, Modify the default SharePoint content placeholders on Office Online.
 
All for now...
 
Tom
 
Technical Writer
SharePoint End User Content

Comments

Great Post!  Thank you very much

This was a very informative and useful post.  Thank you very much.
at 8/20/2008 7:12 AM

Re: Preview of default content placeholders in a SharePoint master page

Thanks, this is some great content!
at 8/20/2008 4:51 PM

Very useful

I have a question regarding this.
What is the main differences between the masterpage in the article compared to a masterpage on a publish site?
at 8/21/2008 1:04 PM

RE: Very useful

This blog post focuses on the default master on a team site, for example.
 
Have you checked out the following MSDN article?
I believe it lists off the required content controls for publishing site.
 
Thanks,
Tom
SharePoint End User Content
Tom at 8/21/2008 10:39 PM

Excellent post

Really useful - thanks for going to the trouble.  Have spent plenty of time wrestling with placeholders - especially dealing with missing ones - this is a great help.
at 10/27/2008 8:36 AM

RE: Excellent post

Thank you very much. I'm glad it helped you out. Please let us know how the customization goes.
at 10/28/2008 8:05 PM

Re: Preview of default content placeholders in a SharePoint master page

Thanks.This is a great post and an extremely useful one.
at 4/27/2009 11:24 PM

Re: Preview of default content placeholders in a SharePoint master page

Tom - Very nicely done. I especially like the screenshots. I will be using this as a reference when I show people how to use the CEWP to turn content placeholders on and off.
 
Would like to cross-post if you don't mind. Ping me.
 
Thanks,
Mark Miller, Founder and Editor
EndUserSharePoint.com
at 5/19/2009 6:57 AM

Re: Preview of default content placeholders in a SharePoint master page

Thanks Mark. Yes, I think this post, along with Heather's CSS Charts, definitely help users work with master pages and CSS. No problem on cross-posting.
 
Tom
at 5/19/2009 8:29 AM

Thanks

thanks a lot
at 10/14/2009 8:50 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Name (required) *


Body *

URL

Type the Web address: (Click here to test)  

Type the description: 

Contact

The control is not available because you do not have the correct permissions.
Attachments