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.

Understanding Master Pages 373<br />

that is displayed and selectable. However, master pages contain many controls and tags,<br />

and it can be a challenge to accurately modify the page in Design view. In this situation,<br />

Code view is particularly useful.<br />

Note In a browser, you can see only the effect of a master page merged with a content page;<br />

you cannot view a master page itself.<br />

SharePoint Designer displays a program window for each site you open, which allows<br />

you to modify only one site at a time. There is no mechanism by which you can publish<br />

your changes from one site to another. Therefore, in SharePoint Designer, master pages<br />

are always modified at the site level.<br />

In this exercise, you locate the default master page and explore the ASP.NET and<br />

SharePoint controls used by that master page.<br />

SET UP Using SharePoint Designer, open the site you created from the<br />

SBSSPDPracticeSite_Starter.wsp practice file.<br />

Check Out<br />

1. In the Navigation pane, click Master Pages.<br />

The workspace contains the gallery page that displays the master pages for your<br />

site. This page is similar to page-settings pages you saw in Chapter 4. For example,<br />

you can edit the master page name, change permissions, and view the version history<br />

of the master page.<br />

Note In a top-level team site on a SharePoint Server installation or on a publishing site,<br />

the Master Page gallery also contains other files.<br />

2. Click v4.master.<br />

The settings page for v4.master is displayed.<br />

3. On the Page tab, click Check Out in the Manage group, and then click Edit File in<br />

the Edit group.<br />

The master page opens in the workspace, and on the breadcrumb the text<br />

Advanced Editor indicates that the page is open in advanced edit mode.<br />

Tip Using the Edit File command in the Customization area in the workspace is<br />

equivalent to clicking the Edit File command on the ribbon.<br />

4. Look in the status bar for the SharePoint Designer window. If Visual Aids is not<br />

specified as On, click Visual Aids on the View tab, and then select Show.<br />

The controls on the page are displayed and surrounded by a purple line. The label for<br />

the active control, PlaceHolderMain, appears above a purple box. In the workspace<br />

status bar, is highlighted in orange to identify<br />

it as the active tag. In the mini-gallery below the Navigation pane, a green check<br />

mark appears to the left of v4.master, indicating that the file is checked out.

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

Saved successfully!

Ooh no, something went wrong!