Friday, October 14, 2011

Provisioning custom list when creating a site through onet.xml

Recently, I had a situation where I need to provision a custom list which has the list template defined in the project itself. We know how to provision an OOTB list using onet.xml as explained in this msdn document

http://msdn.microsoft.com/en-us/library/ms474369.aspx

But, I was facing an error when I was trying to provision a custom list using a custom list definition. I added a new list definition like below.

 In the onet.xml, I had to add the below statement to provision a list instance based on the above list template.


The FeatureId is the feature id attribute of the feature in which the ListTemplate is added.

Hope this helps someone else too.

Thanks
Senthil S

No comments:

Post a Comment