Parsing RSS Feeds Inside Your Joomla Modules or Components

October 21st, 2008 | Save to del.icio.us now(0)

In Joomla 1.0.x it was a bit difficult to parse a RSS feed file inside you component. If you wanted to do that you need to include either SimplePie or some other RSS parsing library  inside your component.

This is not the difficult part, difficult part was that, it might conflict with some other component or module that might also be using the same library.

In Joomla 1.5 you don’t have to worry about this issue any more. It now includes SimplePie library in the framework itself.

To use the library that comes with Joomla all you need to do is

jimport('simplepie.simplepie');

this will include the SimplePie library in you component or module.

Afterwards you can just create a SimplePie object start and using all the functions. In case you don’t know, here is how you can do that

$feed=new SimplePie();

Neat and simple isn’t it?

PS based on this information I have created a simple module to display new 20 tweets for a particular event, which I will be sharing in next few days.

Related posts

  1. Joomla Day Pune(India)
  2. Media Manager Browse Button Disabled In Joomla
  3. Parsing RSS Feeds Inside Your Joomla Modules or Components
  4. 5 key skills of a successful web application developer
  5. Enable Your Joomla To Write In Hindi, Marathi, Bengoli, Gujarati, Malyalam, Telugu and Punjabi

Wondering what to do next?


(Search web development related contents)


Trackback URI | Comments RSS

Say Something, and Be Counted

Name (required)

Email (required)

Website

Speak your mind