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?
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?
Once you view the page source and search for "
var g_wsaSiteTemplateId
" you will find a code, such asSTS#0
orSTS#1
etc... to find out what the template code means you can look at the table below taken from: absolute-sharepoint.comOn 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:Use SharePoint Manager, Navigate through the site, and look for "Web Template".
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.
Sql Server: Sql server is the back-bone of SharePoint, So SELECT Title, WebTemplate FROM dbo.Webs WHERE Title='Your Site'
You can use SharePoint Object Model find site template of a SharePoint site. Just query SPWeb.WebTemplateId.
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
. Examples for listing Web Templates:Get-SPWebTemplate -Identity SGS#0
Get-SPWebTemplate -Identity S*
Get-SPWebTemplate | ? { $_.Name -like "*STS*" }
Go to the view source of the SharePoint page >> Search for "SiteTemplateID" to find site template name SharePoint 2010.
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.
To get Name of the existing site template {Name of the Site Template} follow the below steps
Save a Site as a Template.
Go to Site settings –> sites & workspaces –> create.
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.
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.
It's 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/
Find the template name of SharePoint site using PowerShell
Below is a list of the web templates and their IDs
The correct way to find the web template id using Powershell is
The resulting ID can then be looked up here to get the template display name: https://blogs.technet.microsoft.com/praveenh/2010/10/21/sharepoint-templates-and-their-ids
To get the explanation why
$web.Configuration
is correct and not$web.WebTemplateId
, please read my answer at this question: https://sharepoint.stackexchange.com/questions/96293/powershell-to-get-template-name-site-is-using/269282#269282