we are to create several web parts after a site is provisioned with WSP. I can either create wp from scratch on feature action. Or save a set of WP in gallery and create an instance out of that when needed. The wsp for site template also creates list and libraries where these wp will go. Hope I am making sense. What are my best options to create WP when site is provisions. I will have to add some code to create WP at the end of provisioning site so I am certain all the lists have been created. Please suggest.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
Ok, consider we have this environment:
From this point, we can add some code to the feature receiver (into FeatureActivated), to accomplish our goal. This code will look smth like this:
MSDN references: |
||||
|
|