I need to populate a list that is created as part of a custom site definition from another source. Ive tried using a feature receiver but it states that the list has not been created. I guess that the featureactivated event is triggered before the list has been provisioned. How can i get custom code to run once the site creation has been fully completed.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
If your List is provisioned via a feature, you can add data to the list instance check out this question it has a sample of what you might be looking for. |
|||||
|
|
The data loading should be in a feature. Use a WebTemplate to provision the site. http://sharepointchick.com/archive/2010/06/15/site-definitions-vs.-webtemplates.aspx |
|||
|
|
|
You can add default data in the list instance itself.
|
|||
|
|