I created site template by saving it from a minor customized blog site. I exported it in VS2010 and created a custom web template. Im seeing few site feature references along with some web features in its onet.xml.
After making the required changes, I
- deployed my solution in one of my web apps of my farm
- created a site collection from BLANK site template in that web app.
- activated my web template related features in my site collection
- Once I tried to create a sub site based on my Custom Web Tempplate, Im seeing the errors like "<GUID> feature not found"
The issue was due to the need of a manual activation of features referred in the Site Feature section of Web Template Onet.XML. All the features refered in Web Features section of web template will get activated autoamtically when a site created using that template but the site features have to activated manually.
I resolved this issue by
Removing the unwanted feature references from the Site Features section of Web Template.
Activating the required site features in a site collection feature prior to the web template based site creation.
No comments:
Post a Comment