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 4: Windows SharePoint Services Architecture 107<br />

Users who import a Web Part are actually importing only the description file,<br />

not the assembly file or any auxiliary files. When a user imports a .dwp, a new Web<br />

Part is created <strong>and</strong> the properties specified in the .dwp are applied to this new Web<br />

Part. Then Windows SharePoint Services will save the settings back to the database<br />

<strong>and</strong> persist them for the next time the user browses to the page. The description file<br />

is read, <strong>and</strong> the customized properties are loaded into the database as a Personal<br />

View. If the assembly file does not exist locally on the front-end Web server to which<br />

the Web Part is imported, the import will fail.<br />

Description Files<br />

Once a description file is created, it can be edited <strong>and</strong> elements can be added to<br />

it. Any changes made to the description file are personalizations that override the<br />

default properties of the Web Part. The description file for a different type of Web<br />

Part can contain different elements that apply only to that type of Web Part. The only<br />

required elements in a description file are the Assembly <strong>and</strong> Typename elements.<br />

However, to display a default name <strong>and</strong> description for the Web Part after it is<br />

imported, you should also include the Title <strong>and</strong> Description elements. The following<br />

example shows a description file for an image Web Part:<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!