How to determine what kind of site?
Got a bunch of sites that i've created over the course of testing sp 2007. I want to recreate some of those sites on our production environment but i can remember what kind of sites some of them are, i.e. whether they are a Team, Collaboration, etc. It seems to be determined by which features are activated but i'm not sure. Is there a way to determine this?
June 4th, 2010 11:49pm

You could just go to each site and use Site Actions, Site Settings, Save Site as Template, then go the the template gallery, download the template. Then in production upload the template to the template gallery and then go to Site Actions, Create and create new "clones" of those sites. If you want to write a little code you can list the original template used: SPSite site = new SPSite("http://yourtoplevelsite"); foreach (SPWeb w in site.AllWebs) { Console.WriteLine("Web: " + w.Url); Console.WriteLine(" Title: " + w.Title); Console.WriteLine(" Template " + w.WebTemplate); Console.WriteLine(" Template ID " + w.WebTemplateId); Console.WriteLine(); w.Dispose(); } site.Dispose(); This will return something like this: Web: http://intranet Title: Gears Project Home Template STS Template ID 1 Web: http://intranet/search Title: FAST Search Center Template SRCHCENTERFAST Template ID 2000 Web: http://intranet/wiki Title: Wiki Template ENTERWIKI Template ID 56 The first one for example is a Team Site (with an internal ID of STS#1) Here is a list of 2007 IDs (The Id is in the "Name" row of the list there): http://dotnetdeveloper.co.uk/blogs/sharepoint/archive/2009/07/07/sharepoint-template-id-s.aspx Mike Smith TechTrainingNotes.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2010 12:49am

You should be able to use GetprojectSchema appended to your site URL, it should return some XML containing all the details http://myserver/sites/mysites/_vti_bin/owssvr.dll?Cmd=GetProjSchema Bill Simser has an interesting article about doing this and formatting the output: http://weblogs.asp.net/bsimser/archive/2006/01/04/434463.aspx Regards John Timney
June 5th, 2010 1:01am

John, Very interesting! Thanks. Looks like that one goes back to the SP 2003 days, but still works. (just did some checking... it goes all the way back to SP 1.0!) Mike Smith TechTrainingNotes.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2010 3:09am

I think it still works in 2010 too :) Regards John Timney http://www.johntimney.com/blog
June 6th, 2010 2:08am

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

Other recent topics Other recent topics