How to link your Site Definition with Site Template
When you have a new site definition (onet.xml) is ready, and in order to make that definition available into site template you have to create a webtemp*.xml file into 12\template\1033\xml\webtemp*.xml.
The following is the thumb rule to create web temp file.
The name of the template must match the name of the folder in which you store the site definition. Every site definition needs a unique identifier on your computer. The site definition allows for one configuration as you have defined it in Onet.xml.
If you store your onet.xml in MyCustomSite folder ( 12\Template\SiteTemplates\MyCustomSite\XML\Onet.xml) you have to create your webtemp file as webtempMyCustomSite.xml in 12\Template\1033\XML\webtempMyCustomSite.xml. Make sure you have unique configuration ids maintained across the webtemp*.xml files on the computer.
Ref: http://msdn.microsoft.com/en-us/library/dd583160(office.11).aspx
The following is the thumb rule to create web temp file.
The name of the template must match the name of the folder in which you store the site definition. Every site definition needs a unique identifier on your computer. The site definition allows for one configuration as you have defined it in Onet.xml.
If you store your onet.xml in MyCustomSite folder ( 12\Template\SiteTemplates\MyCustomSite\XML\Onet.xml) you have to create your webtemp file as webtempMyCustomSite.xml in 12\Template\1033\XML\webtempMyCustomSite.xml. Make sure you have unique configuration ids maintained across the webtemp*.xml files on the computer.
Ref: http://msdn.microsoft.com/en-us/library/dd583160(office.11).aspx
Comments