FeatureSiteTemplateAssociation


Table of Contents

The FeatureSiteTemplateAssociation element is used to implement what is commonly referred to as "Feature Stapling". This allows you to automatically turn on features for spoecific site definitions without needing to modifiy the definition itself. This is important when it comes to activating features on out of the box site definitions - to add features to these would normally require modifying the definition files in the 12 hive (which is unsupported from Microsoft), so creating your own custom feature that "staples" your feature to the out of the box site definition is the supported way to do this.

Features can be stapled easily with one element in a custom feature. An example of this is:

 <FeatureSiteTemplateAssociation Id="29D85C25-170C-4df9-A641-12DB0B9D4130" TemplateName="MPS#0" />

The above example will staple a feature to the out of the box meeting workspace site, so when a site is created of this definition the feature specified here will be activated automatically. 

The FeatureSiteTemplateAssociation element can only be used at the Farm or WebApplication level, allowing for some control over where the stapled feature should be used.

For more information on feature stapling, see the following links:

Labels

featurestapling featurestapling Delete
features features Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.



Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. Hosted generously by CustomWare