FeatureSiteTemplateAssociation Element (FeatureSiteTemplateAssociation)
FeatureSiteTemplateAssociation Element (FeatureSiteTemplateAssociation)

Associates the specified Features with the specified site definition configuration so that when Web sites are provisioned, the Features are automatically included.

<FeatureSiteTemplateAssociation
    Id = "Text"
  TemplateName = "Text">
    <Property
      Key= "Text"
    Value = "Text">
    </Property>
  ...
</FeatureSiteTemplateAssociation>
Attributes

Attribute Description

Id

Required Text. Specifies the GUID for the Feature.

TemplateName

Required Text. Specifies the name of the site definition configuration. Windows SharePoint Services includes the following site definition configurations by default.

  • STS#0   Team Site

  • STS#1   Blank Site

  • STS#2   Document Workspace

  • MPS#0   Basic Meeting Workspace

  • MPS#1   Blank Meeting Workspace

  • MPS#2   Decision Meeting Workspace

  • MPS#3   Social Meeting Workspace

  • MPS#4   Multipage Meeting Workspace

  • WIKI#0   Wiki

  • BLOG#0   Blog

Child Elements

Parent Elements

Example

For an example of how this element is used, see Feature/Site Template Associations.

Community Content

(Almost) GLOBAL feature stapling
Added by:austegard
To staple a feature to any site definition - i.e. globally, use a TemplateName="GLOBAL" setting.

However, do note that if a WebTemplate is created with a property value of AllowGlobalFeatureAssociations=false then the feature will NOT be stapled to the site (see http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebtemplate.allowglobalfeatureassociations.aspx and http://support.microsoft.com/default.aspx/kb/936908)

OOTB templates that do not allow Global feature stapling include Blank and SSP.
For more info...
Added by:austegard
see resources listed here: http://delicious.com/tag/feature%20stapling
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View