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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 11 ■ PROGRAMMING SHAREPOINT SERVICES 419The Configuration element does not have to be changed <strong>in</strong> order to create your own sitedef<strong>in</strong>ition, but you may want to customize some of the text to make clear how your templatesdiffer from the orig<strong>in</strong>als. You can give your templates titles and descriptions and associate animage with them. Table 11-2 expla<strong>in</strong>s each attribute of the Configuration element.Table 11-2. The Configuration ElementAttribute Type DescriptionID Integer The only required attribute. It must be a uniquenumber.Title Text A title for the configuration.Description Text A description for the configuration.Type Text An association between a configuration and aspecific site def<strong>in</strong>ition.Hidden Boolean A value that controls the visibility of the configuration.True hides the configuration and it is notavailable for use <strong>in</strong> <strong>SharePo<strong>in</strong>t</strong>. False makes theconfiguration available.ImageURL Text The URL of the preview image used <strong>in</strong> the templatepage. These are typically located <strong>in</strong> the directory\Program Files\Common Files\<strong>Microsoft</strong> Shared\web server extensions\12\TEMPLATE\IMAGES.DisplayCategory Text The tab under which the site def<strong>in</strong>ition will appear<strong>in</strong> <strong>SharePo<strong>in</strong>t</strong>.VisibilityFeatureDependency GUID The identifier of a feature that must be activatedbefore this def<strong>in</strong>ition will be available <strong>in</strong> Share-Po<strong>in</strong>t.Once you have copied a site def<strong>in</strong>ition folder and created a web template file, you mustreset IIS. After that, your new site def<strong>in</strong>ition will appear <strong>in</strong> <strong>SharePo<strong>in</strong>t</strong>. Of course, your newdef<strong>in</strong>ition won’t be any different than the old def<strong>in</strong>ition because you simply copied it. However,you do have the foundation <strong>in</strong> place for mak<strong>in</strong>g the changes you want. Figure 11-3 showsthe example site def<strong>in</strong>ition <strong>in</strong> the list of templates.Figure 11-3. A custom site def<strong>in</strong>ition <strong>in</strong> the <strong>SharePo<strong>in</strong>t</strong> template list

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

Saved successfully!

Ooh no, something went wrong!