Michael Baltaks
Michael Baltaks

Reputation: 2171

Sharepoint 2007 template to site definition conversion

Is there a way to (semi) automatically convert a sharepoint 2007 site template to a site definition? This seems like it could be quicker than building a site definition from scratch, yet provide the benefits of the site definition.

Upvotes: 1

Views: 1742

Answers (3)

Kusek
Kusek

Reputation: 5384

One way you can do it to rename the Site Template (.stp) file to .cab and extract the content and get the onet.xml schema and customize it as you wanted it.

Upvotes: 1

Brian Lyttle
Brian Lyttle

Reputation: 14579

Which defintion was used for the site template do you want to convert? I've found the SharePoint Solution Generator to be hit and miss. For example I can't get it to process blog sites. Worth a shot though.

Upvotes: 0

Flo
Flo

Reputation: 27455

I think with VSeWSS 1.2 you can convert a site to an site definition.

Extract from the VSeWSS 1.2 announcement on the SharePoint Team blog:

SharePoint Solution Generator This stand-alone program generates a Site Definition project from an existing SharePoint site. The program enables developers to use the browser and Microsoft Office SharePoint Designer to customize the content of their sites before creating code by using Visual Studio.

So crating a site from a site template an then running VSeWSS 1.2 should do the trick.

Upvotes: 1

Related Questions