04 Mayıs 2012 Cuma 21:00I'm working on a web part that needs a Links list to store URLs to various locations. What's the best way to have a list created once the feature is activated? Do I create a list definition or is using an event receiver the best way to accomplish this?
05 Mayıs 2012 Cumartesi 06:24
If you are using server edition of Sharepoint 2010 then you can use the MOSS summary links web part (OOB in moss) to store the links.check it out whether its usefull to you http://community.bamboosolutions.com/blogs/sharepoint_blank/archive/2009/04/27/the-moss-summary-link-web-part-part-1.aspx.
Further, if you want it custom way than list definition would be good.
Regards, Dharnendra Shah, MCTS,MCPD - Sharepoint 2010 Application Development Blog: http://ds-sharepoint2010blogs.blogspot.in/ Email: email@example.com
05 Mayıs 2012 Cumartesi 19:15
I would favor creating a feature receiver that creates the list. You can see an example of how to do that here:
Note that the example overrides the FeatureDeactivating method, but in your case, you would want to override the FeatureActivating method
Doug Hemminger http://www.sharepointdoug.com
- Yanıt Olarak İşaretleyen Robbertv 09 Mayıs 2012 Çarşamba 22:56