Finding the Current Site Template the Easy Way in SharePoint 2010

In SharePoint 2007 there seemed to be no easy way to work out which site template was used to create a site (particularly for the end user). Solutions existed using stsadm, or by uploading a custom page to SharePoint, but unless you were an admin, these routes are likely to be closed off to you.

Things are a little easier in SharePoint 2010!

To find the site template for the site you are viewing, follow these steps:

  • View the source for the page in your web browser
  • Search the source for the ‘g_wsaSiteTemplateId’ variable; it’s usually near the top of the source

The value of the variable is the site template that was used to create the site, for example:

var g_wsaSiteTemplateId = 'STS#0';

means that this particular site was created using the Team Site template.