08.08.2017 Views

designer

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

370 Chapter 11 Working with Master Pages<br />

Default Master Pages<br />

As with other pages, site definitions play a key role with master pages. Each site definition<br />

can contain a number of master pages, one of which can be set as the default master<br />

page for the site. However, most site definitions do not contain master pages and use<br />

a global default master page instead. When a site is first created, a site property, referred<br />

to by the token ~masterurl/default.master, is used to save the default master page’s location.<br />

After a site is created, you can change the value stored in this token.<br />

Each page in a site is initially configured to use the site’s default master page. However,<br />

you can modify which master page a content page uses. For example, you can<br />

specify whether you want to use the default master page or a different master page.<br />

Theoretically, each page within a site collection could use a different master page. Such<br />

a scenario would defeat the purpose of using master pages, however, because, as stated<br />

earlier, master pages were introduced to support a common look and feel across entire<br />

sites.<br />

So how many master pages does a SharePoint installation have? In a default installation<br />

of SharePoint Foundation, only the following master pages are used:<br />

●●<br />

●●<br />

Global master pages There are three default master pages:<br />

❍❍<br />

❍❍<br />

❍❍<br />

default.master Provides the look and feel and controls included in a<br />

Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007<br />

installation. This means that the ribbon is not included.<br />

v4.master The primary master page for a SharePoint 2010 installation.<br />

minimal.master This is not the same minimal master page you might have<br />

used with a Windows SharePoint Services 3.0 or SharePoint Server 2007 installation.<br />

The minimal master in SharePoint 2010 is applied to pages that use<br />

the Office Web Applications as well as the Search Center.<br />

Global meeting workspace master pages All meeting workspaces use one of<br />

the global meeting workspace master pages: mwsdefaultv4.master or mwsdefault.<br />

master.<br />

By using global master pages, all your team sites will look the same and all your meeting<br />

workspace sites will look the same. SharePoint Server has additional master pages,<br />

such as mysite.master, which is used on My Sites, and DynamicView.master, which is used<br />

with the PerformancePoint Web Parts. Other master pages can be found in the _layouts

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!