An extension for Radiant CMS that lets you display RSS/Atom/Feedburner feeds in a page, using Paul Dix's FeedZirra library.
Ruby
Pull request Compare This branch is 8 commits ahead of seancribbs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
README.markdown
Rakefile
feed_reader_extension.rb

README.markdown

feed_reader Extension

About

This is a Radiant CMS extension (inspired by the rss_reader_extension) that adds some tags to fetch and display syndication feeds. It uses Paul Dix's Feedzirra library and caches the parsed feed data using the built-in Rails caching system, so you can choose your own caching library: disk, memory, or Memcached, among others.

Installation

Follow the installation instructions for Feedzirra.

Then run this:

To install, go to your Radiant application's root directory, and then:

$ git clone git://github.com/daphonz/radiant-feed-reader-extension.git vendor/extensions/feed_reader 

or

$ git submodule add git://github.com/daphonz/radiant-feed-reader-extension.git vendor/extensions/feed_reader

This extension is tested on Radiant 0.8.1.

Usage

Use it in your page like this (just an example):

<r:feed:entries:each url="http://www.somefeed.com/rss" limit="5" stale_after="1 day">
  <div class="feed-entry">
    <h2><r:link /></h2>
    <div class="meta">by <r:author /> on <r:date format="%Y-%m-%d"/></div>
    <div class="summary"><r:summary /></div>
  </div>
</r:feed:entries:each>