16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

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 31: Working with Web Parts 821<br />

tion depends on whether the page is in Personal view or Shared view. Changes<br />

made in Personal View apply only to the current user <strong>and</strong> take precedence over<br />

changes made in Shared View. A member of the Administrator site group can use<br />

Shared View to set default values for all users of that page.<br />

Even if a Web Part is displayed on a Personal View, it does not follow that you<br />

can personalize the properties of that Web Part. When a Web Part is created, the<br />

properties of the Web Part are defined by the developer <strong>and</strong> are stored, based on the<br />

setting of the WebPartStorage attribute in the property definition, as follows:<br />

■ Shared. This setting means that the property is stored with the same value<br />

for all users. An example of this is a Web Part that displays weather information<br />

<strong>and</strong> has a URL to a weather site as one of its properties.<br />

■ Personal. This setting means that the property is stored per user. In a Web<br />

Part that displays weather information, for example, if you want to allow a user<br />

to choose the geographic area for which to find the weather, you could define<br />

a property that contains a ZIP code, which would be stored on a per-user<br />

basis.<br />

■ None. This setting means that the property is not stored in the database, <strong>and</strong><br />

the value is assigned programmatically by the developer. The value stored in<br />

the .aspx file is ignored. Static Web Parts can have only this type of property.<br />

Using a browser to change a shared or personal property for a Web Part, click<br />

the downward arrow on the right side of the Web Part title bar, <strong>and</strong> then click Modify<br />

My Web Part (in Personal View) or Modify Shared Web Part (in Shared View). On<br />

a Windows SharePoint Service Web Site, the page automatically changes to Design<br />

View with an outline around each Web Part Page Zone <strong>and</strong> a tool pane (also known<br />

as a task pane) for setting properties appears; for a Web Part Page that forms part of<br />

a portal site, you will need to click Edit Page in the Actions list for the downward<br />

arrow to appear, as illustrated in Figure 31-1.<br />

Note For the downward arrow to appear on the News Web Part on a portal<br />

site home page, you will have to switch the page into design mode.<br />

Once you are in design mode on a portal site, an extra link will be added to the<br />

horizontal navigation bar from which you can add subareas.

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

Saved successfully!

Ooh no, something went wrong!