Feature Stapling

Adds a FeatureSitetemplateAssocation to the selected feature

Recipe Description

Stapling SharePoint features with site definitions, which relies on the FeatureSiteTemplateAssociation element, allows developers to attach features to both standard and custom site definitions without directly modifying them.
Every new site that is based on a site definition with a stapled feature is created with that feature activated.
Feature stapling is particularly useful when you want to add functionality to standard site definitions because editing standard site definition files is not a recommended practice. (Source: MSDN)

Arguments

Name Description
Feature Associations
Feature Required Feature. Feature to which the previously selected feature should be stapled to.
Site Template Optional Site Definition. Site Definition to which the previously selected feature should be stapled to.

References

Authors

  • Torsten Mandelkow
  • Matthias Einig

Version history

  • 1.1 Updated Documentation
  • 1.0 Initial Recipe