Introduction
I was recently tasked with writing a handler to display the combined RSS feed of all MySite blogs on a SharePoint Intranet.
The handler takes into account the current user permissions (no rights to see the blog or post means you don't see it in the feed).
Deployment
- Add the SharePoint Solution (*.wsp) to the solution store
C:\>stsadm -o addsolution -filename Vandest.SharePoint.MySiteBlogAggregator
- Deploy the solution using Central Administration > Operations > Solution management
- Open the web.config in 12/TEMPLATES/LAYOUTS/MySiteBlogAggregator and specify the MySite URL
Use
The handler can be accessed as follows: http://mysitehosturl/_layouts/mysiteblogaggregator/rss.ashx
I use the mysitehosturl because paths to images in blog posts are stored relative and they don't appear when you use http://intranet/_layouts/mysiteblogaggregator/rss.ashx (unless you have your MySites on that url of course).
Feel free to use or modify this code.
Downloads
-
Vandest.SharePoint.MySiteBlogAggregator.wsp
-
CODE
Requirements
- Microsoft Office SharePoint Server 2007 Standard or Enterprise