Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Site Definition IDs

  Asked By: Bryon    Date: Mar 12    Category: Sharepoint    Views: 1296

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?



4 Answers Found

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


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

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

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


rest of code

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

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.