Scenario:
You want to activate certain feature before activating another feature.
One common case can be , you want to activate site column feature before Content Type feature which is using the site columns.
Feature XML:
<?xml version="1.0" encoding="utf-8" ?>
<!-- _lcid="1033" _version="12.0.4017" _dal="1" -->
<!-- _LocalBinding -->
<Feature Id="6D145000-D35F-43af-83F3-797B283E3F2E"
Title="Business Content Type"
Description="Installs content types designed to manage information related to business."
Version="1.0.0.0"
Scope="Site"
DefaultResourceFile="core"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="ctypesBusiness.xml" />
</ElementManifests>
<ActivationDependencies>
<!-- Install the site columns that hold business data -->
<ActivationDependency FeatureId="5C784DCD-0109-40c5-A647-B0972E10689A"/>
</ActivationDependencies>
</Feature>
0 comments:
Post a Comment