Compartilhar via


Feature/Site Template Associations

Applies to: SharePoint Foundation 2010

Feature/site template associations allow you to include a specific Feature as part of a site definition configuration when you provision sites through the definition.

Elements

  FeatureSiteTemplateAssociation

    Property

Example

The following example associates one Feature with two different site definition configurations and another Feature and properties with a third configuration.

<Elements xmlns="https://schemas.microsoft.com/sharepoint/">
  <FeatureSiteTemplateAssociation Id="99FE402E-89A0-45aa-9163-85342E865DC8" TemplateName="PROFILES#0" /> 
  <FeatureSiteTemplateAssociation Id="99FE402E-89A0-45aa-9163-85342E865DC8" TemplateName="CMSPUBLISHING#0" /> 
- <FeatureSiteTemplateAssociation Id="541F5F57-C847-4e16-B59A-B31E90E6F9EA" TemplateName="SRCHCENTERLITE#1">
    <Property Key="IncludeInGlobalNavigation" Value="false" /> 
    <Property Key="IncludeInCurrentNavigation" Value="false" /> 
    <Property Key="InheritCurrentNavigation" Value="true" /> 
    <Property Key="IncludePages" Value="false" /> 
  </FeatureSiteTemplateAssociation>
</Elements>