Adding Recourse type Rss

Adding Recourse type Rss

by Mawuli Kuivi -
Number of replies: 7
There are a one of Resource types now in Moodle 1.5  namely file, text, html, etc.

I think it will be nice to have a type called rss which will take an rss url and populate it. It will be an extension to the "Link to a file or Web site" resource.

At the moment, the is something like a block for this but l think it will be best being a resource.

What do you think?
Average of ratings: -
In reply to Mawuli Kuivi

Re: Adding Resource type Rss

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Hi Root,

you can add it as a resource by using some form of RSS render page - theres one here:
http://rails.yanime.org/rssfwd

if you wanted to link to the rss feed of this forum (as a resource of your site) you could use the following URL:
http://rails.yanime.org/rssfwd/preview?url=http%3A%2F%2Fmoodle.org%2Frss%2Ffile.php%2F5%2F21591%2Fforum%2F32%2Frss.xml

...but why would you do this, when you could link to this instead,
http://moodle.org/mod/forum/view.php?f=32
?

smile

Dan

P.S. - have a look at the side blocks on the homepage of the Using Moodle course, there are several Rss feed blocks - OLDaily News feed, Google News, Recent Teaching Resources

In reply to Dan Marsden

Re: Adding Resource type Rss

by Mawuli Kuivi -
I think my point was missed. I know how you can add Rss by using the side block.

All l was talking about is that it would have been nice to have the Rss to be a resource and not a block.

Thanks to all.
In reply to Mawuli Kuivi

Re: Adding Resource type Rss

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Hi Root,

How would your "resource" rss feed look? - would it look similar to the pages I linked to in the above post? - if so, it would be relatively easy to create a "render page" inside moodle like the one linked to, and allow teachers to enter a "rss feed link" - and have the render page render the content.

smile

Dan

In reply to Dan Marsden

Re: Adding Resource type Rss

by Daryl Hawes -
I think this is an excellent idea. It would allow the teacher to use a familiar interface to add a resource to their course. When the teacher enters the new RSS feed URL it would automatically be fetched and the URL would be added to their feeds for management. The content of the URL would appear as any web page resource does now. It would be simple enough to use the existing engine that the block uses to ensure that both mechanisms share a common engine. I'm quite sure that this would not make 1.5 as it is a feature request and not a bug to squash. Ideal candidate for a moodle.org/bugs/ ticket imho.
In reply to Daryl Hawes

Re: Adding Resource type Rss

by daniel ginerman -
Hi,
as I posted during the last 2 days, I also need RSS feeds in some of my courses, and I had serious problems with the rssfeed block propagated somewhere else in moodle forums,... and I had to remove it at all from my system.
Looking for a solution, I just found something that seems to reach precisely what we are looking for; displayed as a resource, or even as an iframe inserted into the HTML of a head-topic of any course, or in the summary block that can be displayed in the side-columns of any moodle page.
take a look: http://www.bigbold.com/rssdigest/
and just bless me smile
cheers,

daniEl
In reply to Mawuli Kuivi

Re: Adding Recourse type Rss

by Daryl Hawes -
I've gone ahead and written a quick hack to do this in moodle 1.5 (only).
You can find the bit of code in cvs contrib as rss_client-resource-1.5.