Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 (Programmer to Programmer)

Perhaps one of the most important things to note about Web Parts is that you can only add them to a special type of page known as a Web Part page. A Web Part page usually consists of Web Part zones, or areas where you add Web Parts. The layout template you select will determine the layout of the zones on the page, but you generally have a header, columns for the middle sections, and footer. Figure 7-1 shows an example of a Web Part page that has a header, footer, and three columns in the middle section.

Figure 7-1

Although each Web Part can act independently of all others on the page, you can also connect or organize them in a fashion that best suits your business or purpose. You can place content in the different zones in any manner you desire, but here are some suggestions on how each zone may be used for the Web Part page layout template shown in Figure 7-1:

There are a few important things to note about Web Part zones:

In the next Try It Out, you create a new Web Part page in an existing team site.

Try It Out-Create a Web Part Page

In this example, you create a new Web Part page, which is very similar to creating other content elements, such as document libraries, lists, or sites. You select one of the layout templates SharePoint has to offer. Once you select a layout template for a page, you really can’t change it later. Therefore, it’s best to select a layout that will allow you the greatest level of flexibility for growth and expansion.

  1. From the main page of a standard team site, select Site Actions Create. The Create window appears, as shown in Figure 7-3.

    Figure 7-3

  2. Select Web Part Page from the Web Pages group.

  3. Enter a name for the Web Part page. For this example, enter backgroundinfo.

  4. Browse through each of the available layout templates and select one that will fit your content. For this example, select the header, footer, three columns layout.

  5. Select the Shared Documents library.

  6. Click the Create button. A web page appears with a header, footer, and three columns as shown in Figure 7-1.

How It Works

Once you create a Web Part page, you can add Web Parts to the various zones. The layout adjusts as you add content.

Категории