Mono Support Any RSS feed for user activity stream ? 

Viewed 11351 time(s), 7 post(s), 3/27/2014 2:04:22 PM - by super
3/27/2014 2:04:22 PM
6018 Reputation 709 Total posts

Is there any RSS feed for User Activity steam which is "Let's socialize" ?

1
3/27/2014 5:31:00 PM
6018 Reputation 709 Total posts

anyone ?

2
3/28/2014 4:19:09 PM
345 Reputation 61 Total posts

Hi Super,
currently there is no RSS feed for the "Let's socialize" page.

Let me know if you'd want to implement it yourself and you need some pointers.

Regards,
Vedran

3
3/28/2014 5:05:53 PM
6018 Reputation 709 Total posts

Yes, I want to implement this and I need help with  the coding. could you please help ?

4
3/31/2014 10:49:41 AM
345 Reputation 61 Total posts

Hi Super, 
what you need to do is create your own control which inherits the MonoX control in question (for Let's Socialize that's usually Events.ascx) and you need to implement the IRssWebPart interface.

First you need to implement the GetRssChannel() method to return a RssChannel and register the page with rss engine:

Easiest way to do this is setting the underlying RssChannel property on the init event with something like this:

RssEngine.RssEngine.RegisterProviderModule(this.Page, this);
Then setup the Rss channel:

if (RssChannel == null)
{
    RssChannel = new RssChannel();
    RssChannel.Link = Request.RawUrl;
    RssChannel.Items = new System.Collections.Generic.List<RssChannelItem>();
}
Now when the RSS channel is created you need to add some items to it. This is usually best done when binding the entities to the control (ItemDataBound event of the repeating control, in case of Events.ascx that's a ListView control). 
In the OnItemDataBound event create create a new RssChanneltem and assign it's properties to what you want to have in the feed (Title, Description, Link etc.) and add it to the previously created RssChannel.

RssChannelItem rssItem = new RssChannelItem();
// here set the properties of rssItem to what you need  in the feed, then add to the RssChannel
RssChannel.Items.Add(rssItem);

One more thing you need to do is set the RssEnabled property to true.

Let me know if this helps.

Regards,










5
4/1/2014 1:35:43 PM
6018 Reputation 709 Total posts

Is this method good for 4.9 version or 5.1 beta ?

6
4/1/2014 2:28:18 PM
345 Reputation 61 Total posts

This should be working for both 4.9 and 5.1 since there weren't any changes which affect the RSS engine.

Regards,
Vedran

7
This is a demo site for MonoX. Please visit Mono Software for more info.