How to determine your site template

How to determine your site template

I had a student send me a questions several weeks ago “is there a way to definitively determine if it a site is based on a WSS or a MOSS template?” I’ve been searching, e-mailing, and posting in order to find the answer, to no avail. So, with enough persistence I was able to figure it out. The answer is YES! What you need to do is save the site as a template, save the template to a file, rename the file, and view the code. I have listed all of the steps below, you just need to make sure you are on starting on the site you want to determine your template.

  1. Go to Site Actions, Site Settings
  2. In the Look and Feel section, click Save Site as Template. Note: if your site has the Publishing feature turned on or is based on a Publishing site template the Save Site as Template link does not appear. Read the Microsoft Knowledge Base article on how to save Publishing sites (or sites with Publishing turned on) as templates. There is a link available in a publishing site so you have to navigate to url/_layouts/savetmpl.aspx to save as template in a publishing site.
  3. Name the new site template
    How to determine your site template
  4. Once you save the template, click the link to go to the Site Template Gallery.
    How to determine your site template in WSS 3.0 or MOSS 2007
  5. In the Site Template Gallery, click on the name of the template. A File Download dialog box will display.
    How to determine your site template in WSS 3.0 or MOSS 2007
  6. Click Save. Give the template a name and location. By default the file will save as a .stp file.
  7. You are finished with the SharePoint portion, now you will need to locate the .stp file that you saved and rename the file with a .cab extension.
  8. Open the new and you will find a manifest.xml file. This is the file that stores the template information.
  9. You will need to extract the manifest.xml file and then you can open it.
  10. Once the manifest.xml file is open, locate the Details section. You will find the <TemplateID> node that will tell what template this site was based on.
    Site Template Manifest

The template ID’s are as follows:

 0 – GLOBAL (SetupPath=global) – “Global template”
 1 – STS – “windows SharePoint Services Site”, “Team Site”, “Blank Site”, “Document Workspace”
 2 – MPS – “Basic Meeting Workspace”, “Blank Meeting Workspace”, “Decision Meeting Workspace”, “Social Meeting Workspace”, “Multipage Meeting Workspace”
 3 – CENTRALADMIN – “Central Admin Site”
 4 – WIKI – “Wiki Site”
 7 – BDR – “Document Center”
 9 – BLOG – “Blog”
 20 – SPS (OBSOLETE) – “SharePoint Portal Server Site”
 21 – SPSPERS – “SharePoint Portal Server Personal Space”
 22 – SPSMSITE – “Personalization Site”
 30 – SPSTOC (OBSOLETE) – “Contents area Template”
 31 – SPSTOPIC (OBSOLETE) – “Topic area template”
 32 – SPSNEWS (OBSOLETE) – “News area template”
33 – SPSNHOME (SubWebOnly) – “News Home template”
 34 – SPSSITES – “Site Directory area template”
36 – SPSCOMMU (OBSOLETE) – “Community area template”
38 – SPSREPORTCENTER – “Report Center Site”
39 – CMSPUBLISHING (SetupPath=SiteTemplates\PUBLISHING) – “Publishing and Team Collaboration Site”
40 – OSRV (SetupPath=SiteTemplates\OSRV) – “Shared Services Administration Site”
47 – SPSPORTAL – “Corporate Intranet Site”
50 – SRCHCEN – “Search Center”
51 – PROFILES – “Profiles”
52 – BLANKINTERNETCONTAINER – “Internet Presence Web Site”
53 – BLANKINTERNET – “Publishing Site”, “Press Releases Site”, “Publishing Site”
54 – SPSMSITEHOST – “My Site Host”
90 – SRCHCENTERLITE (SetupPath=SiteTemplates\SRCHCENTERLITE) – “Search Center Lite”
6221 – PWA (SetupPath=SiteTemplates\PWA) – “Project Web Access Site”
6215 – PWS (SetupPath=SiteTemplates\PWS) – “Project Workspace”
14483 – OFFILE – “Records Repository”, “Records Repository”

No comments

Leave a reply

Your email is never published nor shared. Required fields are marked *


Comment spam protected by SpamBam