I have created a web template in visual studio that users can create sub sites from. I want to activate a feature when the subsite is created eg create list items etc.
How would i approach doing this?
You can associate a feature with a specific site template, but if you put "GLOBAL" instead of the template name, your feature will be activiated for all websites created .
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<FeatureSiteTemplateAssociation Id="29D85C25-170C-4df9-A641-12DB0B9D4130" TemplateName="GLOBAL" />
</Elements>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.