Wednesday, March 17, 2010

Retrieve Contents from RSS

This is very advanced features when you want to show the list of Article's Titles from one of another blog or a different blog that you want to share with your blog readers.

You can able to retrieve the basic contents as title, link, description, date, summary etc in a list format. For doing such, you need to install "MAGPIE" plugin with your current Expression Engine.

Installation Steps:-

1. Download MAGPIE first.
2. Extract the downloaded zip file.
3. Copy the pi.magpie.php inside EE System folder through any common FTP program.
4. Login to your active EE Admin area.
5. Create a new template and name accordingly.
6. Type the following code there :-



7. Save the Template and run to see how it fetch records from any available RSS feed.

The tag has three parameters:

1. url - The URL of the RSS or Atom feed.

2. limit - Number of items to display from feed.

3. offset - Skip a certain number of items in the display of the feed.

4. refresh - How often to refresh the cache file (in minutes). The plugin default is to refresh the cached file every three hours.

Example opening tag: {exp:magpie url="http://example.com/rss/" limit="8" refresh="720"}