Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How/where can I find the template used for a SharePoint site or page.

I have a page I want to resemble, but I don't know where to find the template for that page and site?

share|improve this question
    
I found a "solution" to my original problem. It turned out that the publishing feature had been turned on for that site and that gave the page layout wanted. Still the SharePoint Manager suggestion would be the best solution as far as I can see to the question –  noesgard Sep 8 '09 at 10:37

5 Answers 5

up vote 2 down vote accepted

To get Name of the existing site template {Name of the Site Template} follow the below steps

  1. Save a Site as a Template.

  2. Go to Site settings –> sites & workspaces –> create.

  3. IE Tools > Developer Tools > Find > Select Element By Click > View > Source > DOM (Element) > Highlight and copy the section test . The one in bold will be your site template name.

share|improve this answer

The easiest way is to get a tool like SharePoint Manager. Go into the site you are looking at, and find the WebTemplateId property. You can then match it up to a list of known template types.

There is another way to do it, but it is much more manual (and ugly) so I won't outline it here.

As far as a page template goes - this only works on pages within a Publishing site (in the Pages library...) but you should be able to look at the ContentType field in the Properties for a page in SPM. If you are looking at a pages library, you can even just add Content Type to the view directly within SharePoint and get the same information.

share|improve this answer

On Salaudeen Rajack`s blog www.sharepointdiary.com there is a tutorial with explained 6 ways to determine a SharePoint Site Template. The link can be found here.

Cited:

  1. Use SharePoint Manager, Navigate through the site, and look for "Web Template".

  2. Stsadm: stsadm.exe -o enumallwebs -databasename > Template.txt Now, Open the template.txt file and check for template. This trick can be used to find site template name for SharePoint 2010 even.

  3. Sql Server: Sql server is the back-bone of SharePoint, So SELECT Title, WebTemplate FROM dbo.Webs WHERE Title='Your Site'

  4. You can use SharePoint Object Model find site template of a SharePoint site. Just query SPWeb.WebTemplateId.

  5. SharePoint 2010 - find template used create site: In SharePoint 2010, You can get the list of site templates by using a PowerShell Cmd-let: Get-SPWebTemplate

  6. Go to the view source of the SharePoint page >> Search for "SiteTemplateID" to find site template name SharePoint 2010.

share|improve this answer
    
A link might break at any time. Please give at least as summary. –  vonbrand Mar 19 '13 at 9:55
    
Done. Thanks for pointing it out. :) –  dzookatz Mar 19 '13 at 10:41

For Pages

If you open the site in SharePoint Designer, then checkout the page you want for editing it will ask you if you want to edit the content (via the website) or edit the layout (via SharePoint designer)

Not sure what exactly you want to do by knowing the template for the site.

Re: Comments

Which do you want to open? A page or a site? These are different things.

To get the LAYOUT PAGE for any given SharePoint page, you need to find that page you are curious about in SharePoint designer. Double click it and when you do SPD will ask you if you want to edit the content (and if so, take you to the web browser interface) or if you want to edit the layout (if you have enough permission). If you edit the layout another copy of SPD is opened and the layout file is checked out. Look in the file window for the name of the layout.

share|improve this answer
    
I want to know the template, so I can create a page/site with the same template.... That's why I want to know –  noesgard Sep 2 '09 at 6:03
    
besides I can't find the name of the template anywhere by opening in SharePoint Designer, any hints on where to find the missing link? –  noesgard Sep 2 '09 at 6:09
    
This doesn't always work. I get an error saying the page layout can't be found (it's looking for at some old address that no longer exists but it still associated with the page somewhere). Isn't there somewhere where you can just see the name of the page layout? –  xr280xr Sep 6 '11 at 19:14

its an old thread. still, it appears that we can simply look for the value of a javascript variable in the source code / script tab (firebug).

var g_wsaSiteTemplateId = ‘STS#1′;

http://nickhobbs.wordpress.com/2013/05/18/sharepoint-how-to-check-which-site-template-was-used-to-create-a-site-just-using-a-web-browser/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.