Tuesday, March 23, 2010

Sequence of steps to add columns and provision list template in a site using Visual Studio 2008 using SharePoint Extensions

1. Add a List Definition item to SharePoint project.
2. Setup list properties Title, Description, OnQuickLaunch etc in instance.xml.
3. Schema.xml has four sections in section 
  • Content Types
  • Fields
  • Views 
  • Forms
4. To add columns in the list while provisioning use section and add all the fields required in the list.

Note : While adding columns using section, make sure a uniquely generated ID is specified.

No comments:

Post a Comment