Monday, January 14, 2013

#SharePoint | Templates


I am writing down a few concepts regarding SharePoint template IDs, Names and related information so it can be clear. There are a couple of other posts around this, but they either show the WebTemplate IDs, or the Template Names, and showing all values seems to be easier to understand site templates and how we can use generic content conditions ("all sites of the Meeting template") or specific feature staplers ("all Team Sites").

Web Template Name (SPWeb.WebTemplate)
Name of the website's root template
e.g. STS, MPS, BLOG, WIKI

Web Template ID (SPWeb.WebTemplateID)
ID of the website's root template
e.g. 1, 2, 9, 4

Configuration (SPWeb.Configuration)
ID of the current site specific template
e.g. 0 for Team Sites

TemplateName (used for feature stapling)
Web Template Name + "#" + Configuration
e.g. STS#0 for Team Sites



Site Title / SPWeb Property
WebTemplate
WebTemplateID
Configuration
TemplateName (staplers)
Team Site
STS
1
0
STS#0
Blank Site
STS
1
1
STS#1
Document Workspace
STS
1
2
STS#2
Wiki Site
WIKI
4
0
WIKI#0
Blog Site
BLOG
9
0
BLOG#0
My Site (My Content)
SPSPERS
21
0
SPSPERS#0
My Site Host
SPSMSITEHOST
54
0
SPSMSITEHOST#0
Personalization Site
SPSMSITE
22
0
SPSMSITE#0
Search Center
SRCHCEN
50
0
SRCHCEN#0
Search Center Lite
SRCHCENTERLITE
90
0
SRCHCENTERLITE#0
Basic Meeting Workspace
MPS
2
0
MPS#0
Blank Meeting Workspace
MPS
2
1
MPS#1
Decision Meeting Workspace
MPS
2
2
MPS#2
Social Meeting Workspace
MPS
2
3
MPS#3
Multipage Meeting Workspace
MPS
2
4
MPS#4
Central Administration Site
CENTRALADMIN
3
0
CENTRALADMIN#0
Group Work Site
SGS
15
0
SGS#0
Document Center
BDR
7
0
BDR#0


References:
http://msdn.microsoft.com/en-us/library/ms434726.aspx
http://manjunath-sharepoint.blogspot.pt/2012/05/sharepoint-web-template-id-reference.html
http://www.bfcnetworks.com/sharepoint-2010-site-template-id-numbers/

No comments:

Post a Comment