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

I have a web template that users can create sub sites from. I want to activate a feature when the subsite is created e.g. create list, columns etc for that sub site only.

How would i approach doing this?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

To solve this you can use Feature stapling. Also see What is “feature stapling”?.

share|improve this answer
    
thanks for the reply. is FeatureStapling the best way to do this? are there any other options? –  user1786107 Nov 4 '12 at 14:10
add comment

Generally speaking, when you want a FEATURE activated for any web created in the farm using a specific web template, you use FEATURE STAPLING.

But, if you want a FEATURE activated for any web created in a particular Site Collection only, you should use WEB PROVISIONED event. For more information on, WebProvisioned event, check here: http://stefan-stanev-sharepoint-blog.blogspot.com/2010/09/webprovisioned-event-receiver-practical.html

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.