08.08.2017 Views

designer

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

378 Chapter 11 Working with Master Pages<br />

See Also For more information about creating a master page, see the sidebar “Creating a<br />

Master Page” earlier in this chapter.<br />

Like site definition files, master pages that are created when you install SharePoint are<br />

stored in the root directory on the Web server. In SharePoint Designer, you can edit master<br />

pages only in advance edit mode. When you save changes, you do not alter the file<br />

on the Web server. SharePoint takes a copy of the file, including your amendments, and<br />

saves it in the Microsoft SQL Server content database—that is, the page becomes a customized<br />

page. If a developer subsequently changes the master page on the Web server,<br />

your site will not reflect those changes.<br />

See Also For more information about site definitions and the root directory, see Chapter 1.<br />

In this exercise, you create and save a copy of the v4.master page.<br />

SET UP Using SharePoint Designer, open the team site you used in the previous<br />

exercise if it is not already open. The settings page for the site should be displayed.<br />

Check Out<br />

Rename<br />

Edit File<br />

1. In the Navigation pane, click Master Page to display the gallery page in the<br />

workspace.<br />

2. Click the icon to the left of v4.master. On the Master Pages tab, click Copy in the<br />

Clipboard group, and then click Paste.<br />

On the gallery page and in the mini-gallery below the Navigation pane, the file<br />

v4_copy(1).master appears<br />

Note You could complete this task by using the All Files mini-gallery and navigating<br />

to the master page (Master Page Gallery) library in the _catalogs folder. You could then<br />

save your master page anywhere in your site. However, the best practice is to save the<br />

master page in the site’s Master Page Gallery library.<br />

3. Click the icon to the left of v4_copy(1).master, and then on the Master Pages tab,<br />

click Check Out in the Manage group.<br />

4. Click Rename in the Edit group. Type v4-test.master, and press Enter.<br />

Important Be sure to name the file with the .master extension.<br />

A dialog box briefly appears stating that your file is being renamed.<br />

5. On the Master Pages tab, click Edit File in the Edit group.<br />

The v4-test.master page opens in Split view.<br />

Troubleshooting If your page does not open in Split view, click the Split button in the<br />

workspace status bar.

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

Saved successfully!

Ooh no, something went wrong!