RSS Reader Webpart for SharePoint
UPDATE: http://weblogs.asp.net/jan/archive/2004/03/11/88118.aspx
Since releasing my previous “essential” webparts (Navigation, MyAlerts & Breadcrumbs) I'm really into extending SharePoint. I've always wanted to create a webpart that would display the contents of an RSS feed and this weekend I finally found some time! So here it is: the Leadit RSSReader webpart. I know Tim Heuer has already created such a webpart, but as a developer it's always cooler to be able to use your own bits.
I've tried to make this webpart as flexible as possible, you can change following properties:
-
Feed URL: of course :-)
-
Number of posts to show
-
Cache duration
-
Show post contents
-
Post title in bold (useful when showing the post contents)
-
Show post date
-
Post icon URL (if no URL is set, no icon will be displayed)
-
Show feed title
-
Show copyright (if one is available in the feed it's shown below the posts, if the feed has a link to an image, that image is shown too)
The easiest way to use this webpart is to put the Leadit.SharePoint.RSSReader.dll in the GAC (it needs some privileges to read the feed) and the DWP file in the \wpcatalog directory. To mark the assemnbly as safe put the following line in the SafeControls section of the Web.Config: <SafeControl Assembly="Leadit.SharePoint.RSSReader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=86680f0f768d39e0" Namespace="Leadit.SharePoint" TypeName="*" Safe="True" />.
Downloads:
As always: please test this webpart first before you use it in a production site, I'm not responsible for bad things that could happen... :-) Btw, for all the Belgian people intrested in customizing SharePoint: keep the 3th of March free in your agenda (evening), I'll post more details as soon as they become available.