13.07.2015 Views

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

SHOW MORE
SHOW LESS

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

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

CHAPTER 5 ■ SHAREPOINT CONTENT DEVELOPMENT AND MANAGEMENT 175Once the content type is created, you can go on to create the new page layout. Creat<strong>in</strong>ga new page layout is done from the Master Page and Page Layout Gallery, which is accessiblefrom the Site Sett<strong>in</strong>gs page. From the Master Page and Page Layout Gallery, you can selectNew ➤ Page Layout from the toolbar. When you create the new page layout, you’ll be askedto associate it with a content type. Here you would simply select the content type you createdearlier.After the new page layout is created, you must specifically add field controls to the pageso that content editors can use them to create new pages. Field controls are added us<strong>in</strong>g the<strong>SharePo<strong>in</strong>t</strong> Designer, and you can open the page layout for edit<strong>in</strong>g <strong>in</strong> the <strong>SharePo<strong>in</strong>t</strong> Designerby us<strong>in</strong>g the drop-down menu associated with the file. Alternately, you can open the entiresite <strong>in</strong> the <strong>SharePo<strong>in</strong>t</strong> Designer and locate the page layout <strong>in</strong> the Master Page Gallery locatedat catalogs\masterpage.Depend<strong>in</strong>g upon your exact role on the site, you may need to make changes to the ContributorSett<strong>in</strong>gs. In order to change the sett<strong>in</strong>gs, select Site ➤ Contributor Sett<strong>in</strong>gs, which willopen a dialog. In the dialog, you can give groups the ability to edit certa<strong>in</strong> content. Additionally,you can simply disable the sett<strong>in</strong>gs to allow all content to be edited. In any case, if youhave trouble mak<strong>in</strong>g changes to the page layout, it is likely the result of restricted permissions.If you have appropriate permissions, you can double-click the new page layout and it willopen for edit<strong>in</strong>g. By select<strong>in</strong>g Task Panes ➤ Toolbox, you can open a w<strong>in</strong>dow that shows all ofthe different components that you can add to the page. The field controls appear <strong>in</strong> the Share-Po<strong>in</strong>t Controls section under the Content Fields node. Us<strong>in</strong>g the toolbox, you can right-clickany of the content fields and select Insert from the context menu to add them to the page layout,as shown <strong>in</strong> Figure 5-14.Figure 5-14. Add<strong>in</strong>g field controlsOnce the new page layout is completed, you must make it available to content editors.This is done by check<strong>in</strong>g <strong>in</strong> the page layout, publish<strong>in</strong>g it, and approv<strong>in</strong>g it. This process islargely the same as for any item <strong>in</strong> <strong>SharePo<strong>in</strong>t</strong>. Once approved, the new page layout will beavailable on the site when a user selects Create Page from the Site Actions menu. If you are<strong>in</strong>terested <strong>in</strong> a detailed exam<strong>in</strong>ation of creat<strong>in</strong>g new page layouts, the Exercise at the end ofthe chapter will walk you through the entire process.

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

Saved successfully!

Ooh no, something went wrong!