lundi 23 mars 2015

Activate features by code when site created -Onet.xml



I created a new sub site from custom site template. I deployed my custom web template to this site collection. I create a new site and select my custom web template.


But I dont understand, why I need to do feature activation manually? Is it possible to activate features by code when site created? Find my onet.xml code



<WebFeatures>
<Feature ID="6e86842d-89db-4c4f-bd04-37f41dc28754"/>
<Feature ID="891e49d5-a8ea-40c5-9930-ea3079fb7370"/>
</WebFeatures>







0 commentaires:

Enregistrer un commentaire