Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a good link that can show how to add a sub-site under the existing site collection based on "Team Site" (STS#0) Template? (the sitecollection url is http://local/sites/Amtrack). The url for sub site is going to be then http://local/sites/Amtrack/newSubsite

share|improve this question

1 Answer 1

up vote 1 down vote accepted

This link has a good code example for creating a site from a Site Definition:

http://blah.winsmarts.com/2007-5-Programatically_create_a_SharePoint_site_based_on_a_site_definition.aspx

share|improve this answer
1  
Thanks. I was on the same page. I guess, I will feature with receiver and kick start the code on feature activation. –  Bob Dinero Oct 12 '10 at 18:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.