
270
❘
CHAPTER 9 PAGE LAYOUTS
11. Delete the <a href> and then add a Web Part zone. SharePoint Designer needs to be in
Design view or Split view for adding Web Part zones, so switch to the Split view by click-
ing Split at the bottom of the main window. Then, from the ribbon, click Insert ➪ Web Part
Zone. You can switch back to Code view when you are done.
Notice that adding a Web Part zone not only adds a
<WebPartPages:WebPartZone> control
where your cursor was placed, but also adds a
<WebPartPages:SPProxyWebPartManager>
control to the top of the
PlaceHolderMain. The SPProxyWebPartManager only needs to be
added to the page once to handle multiple Web Part zones. If you want, you can change the
title of
<WebPartPages:WebPartZone> from “Zone 1” to something more meaningful like
“Right Zone.” For editing purposes, this can be helpful if you need to add more than one
Web Part zone to a page layout. You can also change the default ID that is applied to the
Web Part zone. This ID is generated automatically to be uniquely different from any other
IDs in the page layout. IDs cannot start with numbers, and they must not contain spaces or
special characters. Also, if you change the ID, be sure you don’t accidently replicate another
ID that is already on the page.
This completes the changes to
PlaceHolderMain. Now turn your attention to the
PlaceHolderPageTitle content placeholder. In t