Geeks With Blogs

News

qrcode

Lance Robinson

Create Your Badge

Lance Robinson is a software engineer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.

 Subscribe


Lance's TextBox » About Me » My Resume »Twitter

The default RSS feeds in SharePoint are very basic and I want them to contain more information.  I managed this by generating my own RSS feeds.  Here is how I did it:

First, install the RSSBus SharePoint WebPart.  After running the setup, go to the Site Collection Features page to activate the Web Part.  In order to create custom RSS feeds, you’ll also need to activate the “RSSBus Service Handler” feature. 

I created a special document library for my feeds, I called it “Really Simple Services”, since RSS feeds can really be thought of as exactly that.  For my first feed, I added a new document to the library and named it sp-rss.rst, with the following contents:

<rsb:info title="My Custom RSS Feed" description="This is my custom RSS feed description" />  
<!-- this could also come as input in the URL -->    
<rsb:set attr="list" value="Shared Documents"/> 
<rsb:set item="_meta" attr="rss:title" value="Custom SharePoint RSS: [list]" />        
    
<rsb:call op="spListItems" output="out">  
 <rsb:push title="[rss:title | def('untitled item')]"> 
  [out.*]  
 </rsb:push>  </rsb:call>

Now I can call this custom RSS feed as you would expect, ie http://myserver/Really Simple Services/sp-rss.rsb. Except when I hit that URL instead of downloading a document, I’ll get an RSS feed.  This example generates an RSS feed out of a specific list, but I can change it so that it generates an RSS feed out of *any* list by getting the list from the URL.  For example:

<rsb:info>  
 <input name="list" default="Shared Documents" /> 
</rsb:info>      <rsb:set item="_meta" attr="rss:title" value="Custom SharePoint RSS: [list]" />        
    
<rsb:call op="spListItems" output="out">  
 <rsb:push title="[rss:title | def('untitled item')]"> 
  [out.*]  
 </rsb:push> 
</rsb:call>

If I now call the same URL, I’ll still get the Shared Documents.  But if I add a specific list to the URL, I’ll get that list instead, ie: http://myserver/Really Simple Services/sp-rss.rsb?list=Other Documents. The difference in the script itself is that the “list” name has been moved from an rsb:set (hard-coded) to the rsb:info input. 

Technorati Tags: , , ,
Posted on Tuesday, May 19, 2009 2:25 PM | Back to top


Comments on this post: Customize SharePoint RSS Feeds

# re: Customize SharePoint RSS Feeds
Requesting Gravatar...
thanks its quite helpful
Left by nanu on Nov 17, 2009 1:01 AM

# re: Customize SharePoint RSS Feeds
Requesting Gravatar...
trying to have an rss to display the availability of a staff member, he'd have to notify that rss which would update his availability status on his personal site
noigraud@hotmail.com
Left by ashley on Dec 23, 2009 2:42 PM

# re: Customize SharePoint RSS Feeds
Requesting Gravatar...
Great walkthrough. The process wasn't as hard as I thought it would be.
Left by Tony on Dec 21, 2010 12:40 PM

Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net