I know that SPWeb have "WebTemplate" property and it always gives me string like "STS" or "MPS", but what I need is something like "STS#1". There is also "WebTemplateId" property, it gives WebTemplate Enumeration, which isn't useful for me.
Asked
Active
Viewed 181 times
5
1 Answers
6
You can get WebTemplate and Configuration properties, then use string.format("{0}#{1}", web.WebTemplate, web.Configuration ).
Alexander
- 8,139
- 2
- 27
- 42
http://sharepoint.stackexchange.com/questions/5667/which-site-template-is-a-site-using/8455#8455 – Matthias Dec 01 '11 at 14:08