I am creating a list definition that includes three columns that are look-ups off of other lists. I would like these look-up lists to be populated with some data when they are created but they also need to be editable by the site content managers.
When I save a list as a list template via the list settings page it gives me the option of saving list content. If I download the .stp, rename to .cab, open, and view the manifest.xml file I see list content is saved in the Data node. I added this data node to the schema.xml file of my list definition, but when I create a list using the list definition the data gets ignored.
How can I have my list definitions come pre-populated with data?
The (partial) solution is the ListInstance element of the elements xml file.
Some helpful links:
http://blogit.create.pt/blogs/andrevala/archive/2008/06/17/SharePoint-2007-Deployment_3A00_-List-Instance-Features.aspx
http://msdn.microsoft.com/en-us/library/ms478860.aspx
EDIT: Note, this only creates a list with the specified data when the feature is activated. Lists created from the list template via the UI will not have any records.