Reputation: 11389
A SharePoint site template is basically a saved version the differences between a Site Definition and the current state of a site. I've read that Site Templates can only be applied to sites that use the same Site Definition that was used to create the template.
If you have an STP file, how do you determine which Site Definition was used to create the Site Template?
Upvotes: 1
Views: 8165
Reputation:
I have written SharePoint Object Model code list all the sites and the site definition used to create the side. Please see this here:
http://manish-sharepoint.blogspot.com/2009/06/finding-template-used-to-create-sites.html
Upvotes: 1
Reputation: 11389
Use these steps to determine what site definition a site template was based on:
I'm not sure why, but the site definitions are grouped so that you might not know exactly which site definition was used. For example, Team Site, Blank Site, and Document Workspace all share the same Tempalte ID (1). That should mean that a site template with that ID should be able to be applied to any of those 3 sites.
Upvotes: 2
Reputation: 1987
STP files are just ZIP-compressed files. If you rename the extension to *.ZIP you can extract the contents and examine the XML files that will contain the info you are looking for.
I don't have a STP file around so I can't tell you exactly what file to look for but I've done that before and is not that hard to find.
Good luck!
Upvotes: 2