Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Site Definition IDs

  Asked By: Bryon Snow         Date: Mar 12, 2005      Category: Sharepoint      Views: 272
 

Is there a way to determine the site defintion id used to create each
top level site or subsite? If so, how can I find that?

Tagged:      

 

4 Answers Found

 
Answer #1       Answered By: Agustin Miranda          Answered On: Mar 12, 2005       

SPWeb.WebTemplateId..................

 
Answer #2       Answered By: Arron Middleton          Answered On: Mar 12, 2005       

but is there a way to do this without writing
code? I see that in the template gallery, there is a system field
called site  definition ID ... It looks as though it applies to
templates rather than sites, though.

 
Answer #3       Answered By: Vance Hardin          Answered On: Mar 12, 2005       

SPWeb mySite = SPControl.GetContextWeb(Context);
output.Write("<b>"+mySite.WebTemplate.ToString()+"</b> ");

mySite.WebTemplateId

rest of code

 
Answer #4       Answered By: Kareem Flynn          Answered On: Mar 12, 2005       

There is a column in the content database Web table. I think it is
called WebTemplate but I don't remember for sure.

 
Didn't find what you were looking for? Find more on Site Definition IDs Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].