In WSS 3.0 Site definition, we have a manifest.xml file to describe the content in solution file and how to deploy the content. In the XML element of manifest.xml file, there are many location attributes to use. It is confusing where these locations reference. Here are some clues:
1. SiteDefinitionManifest node: The location of this node reference to SiteTemplates folder under TEMPLATE directory. For example:
<SiteDefinitionManifest Location="MyCustomSite" /> will create a subdirectory called MyCustomSite under …12\TEMPLATE\SiteTemplates and copy all the contents under MyCustomSite directory in solution file into …12\TEMPLATE\SiteTemplates\MyCustomSite. In your solution file, you need to have a directory called MyCustomSite and put all your customized site pages in it. Inside this directory, you need to create a directory called XML and put onet.xml inside it.
2. FeatureManifest node: The location of this node references to FEATURES folder under …12\TEMPLATE. For example:
<FeatureManifest Location="TEMPLATE\MyFeature\Feature.xml" /> will create a file at ...\12\TEMPLATE\Features\MyFeature\feature.xml
3. RootFile node: The location of this node references to 12 hive. For example:
<RootFile location="TEMPLATE\Admin\MyPage.aspx" /> will create a file at ...\12\TEMPLATE\Admin\MyPage.aspx
4. : TemplateFile node: The location of this node references to TEMPLATE folder. For example:
<templatefile location="ControlTemplates\MyFeature\MyFormControl.ascx" /> will create a file at ...\12\TEMPLATE\ControlTemplates\MyFeature\MyFormControl.ascx.
1. SiteDefinitionManifest node: The location of this node reference to SiteTemplates folder under TEMPLATE directory. For example:
<SiteDefinitionManifest Location="MyCustomSite" /> will create a subdirectory called MyCustomSite under …12\TEMPLATE\SiteTemplates and copy all the contents under MyCustomSite directory in solution file into …12\TEMPLATE\SiteTemplates\MyCustomSite. In your solution file, you need to have a directory called MyCustomSite and put all your customized site pages in it. Inside this directory, you need to create a directory called XML and put onet.xml inside it.
2. FeatureManifest node: The location of this node references to FEATURES folder under …12\TEMPLATE. For example:
<FeatureManifest Location="TEMPLATE\MyFeature\Feature.xml" /> will create a file at ...\12\TEMPLATE\Features\MyFeature\feature.xml
3. RootFile node: The location of this node references to 12 hive. For example:
<RootFile location="TEMPLATE\Admin\MyPage.aspx" /> will create a file at ...\12\TEMPLATE\Admin\MyPage.aspx
4. : TemplateFile node: The location of this node references to TEMPLATE folder. For example:
<templatefile location="ControlTemplates\MyFeature\MyFormControl.ascx" /> will create a file at ...\12\TEMPLATE\ControlTemplates\MyFeature\MyFormControl.ascx.
Comments