SharePoint 2010 How do you determine what type of site is on the site?

How do you determine which site type is in sharepoint 2010?

+3
source share
4 answers

In the object model, SPWeb.WebTemplate will tell you which template was used to create the site.

+6
source

The easiest way to do this is to use PowerShell:

PS> asnp Microsoft.SharePoint.PowerShell
PS> $web = get-spweb http://server/site
PS> $web.WebTemplate
YOURSITEDEF
PS> $web.WebTemplateId
12345
+7
source

, SharePoint Explorer, , - .

http://spm.codeplex.com/

+1

sharepoint.stackexchange.com : " HTML- " g_wsaSiteTemplateId "- , ."

In my case, the template is the command site:

var g_presenceEnabled = true;
var g_wsaEnabled = false;
var g_wsaLCID = 1033;
var g_wsaSiteTemplateId = 'STS#0';
var g_wsaListTemplateId = 119;

Other responses must be executed on the server (or using a distance for the PowerShell option). This is not always practical, and this option can be performed from any machine with web access to the site.

+1
source

All Articles