Show templates currently used for sites
I'm trying to use export/import to move a site to another site collection and receive the message "exported site is based on the template STS#1 but the destination site is based on the template STS#0". Is there an stsadm command that I can execute to show me what templates have been used for the sites?Thanks.Jim
January 27th, 2010 8:33pm

Hi,I hope this help- http://www.stationcomputing.com/scblogspace/Lists/Posts/Post.aspx?List=ec6ce151%2D566a%2D499e%2D94a5%2De153fafda404&ID=43- http://www.trinkit.co.nz/blog/archive/2007/07/09/move-a-wss-sub-site-to-the-top-level.aspx- http://faizal-comeacross.blogspot.com/2009/04/sharepoint-content-deployment-wizard.htmlBest Regards, Ammar MCT http://ahmed-ammar.blogspot.com Posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
January 27th, 2010 8:42pm

Thanks, this is all good information but not quite what I was looking for. I'm going to moving a number of sites between Site Collections over the next few months and just wanted to make sure prior to the move that I would not run into the template issue ahead of time. That's why I wanted to determine which template was used for the sites.Another question, is there anything that is lost when I do an export/import? (e.g. metadata, workflow, etc?)
January 27th, 2010 11:34pm

Hi Jim, From the error message, it means that a site based on the blank template is trying to be imported into a site based on the team template.You must import/export to sites that share the same template. So a team site can only be exported and imported into another team site. Team Site STS#0 Blank Site STS#1 Document Workspace STS#2 Wiki Site WIKI#0 Blog BLOG#0 For more information, please refer to: http://coppockscoolness.blogspot.com/2008/05/sharepoint-subsite-move-up-1-level.html Regarding the second question, although using the export operation saves data for you, it is not the same as using the backup operation. You cannot save a workflow, alerts, features, solutions, or Recycle-Bin state by using the export operation. If you want a full-fidelity backup, use the Stsadm backup operation to back up the site collection. For more information, please refer to: Archive and retrieve content by using Stsadm import and export operations http://technet.microsoft.com/en-us/library/cc706866.aspx Hope this helps. Lu ZouTechNet Subscriber Support in forumIf you have any feedback on our support, please contact mtngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2010 6:37am

You could use powershell to access the SharePoint object model. The site's template ID is a property of SPWeb. (SPweb.WebTemplateID) Then you would compare this integer to the list of site template ID numbers : http://dotnet.org.za/ridwan/archive/2008/07/25/list-of-sharepoint-templates-codes-and-description.aspx Andrew Milsark, MCTS Fpweb.net - The SharePoint Hosting Pioneer Company Blog: http://blog.fpweb.net Personal Blog: http://www.andrewmilsark.com/blog
January 28th, 2010 7:43am

Hi Jim,the easiest way to get the templates of all sites is to use stsadm.exe -o enumallwebs (which works without any other switches if you have december CU installed). If you pipe that command to an XML file you get a well formatted list. The only thing you have to do aferwards is to compare the Template IDs with the IDs in the folder C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML.Best regardsMOSS_Test_dummy
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2010 9:38am

Thanks, this is good information. I know that I will not get a full-fidelity backup using export/import, but I didn't think I could use backup restore to backup a site under one site collection and restore it into another site collection. If I can then that will be my path.
January 28th, 2010 3:45pm

Both of the last two replys had good information. I will use these to determine if I have a conflict between the templates. Thanks. Jim
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2010 3:48pm

Excellent - good to know this.
October 25th, 2010 6:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics