github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jamesmacaulay / radiant-rss-reader forked from lorenjohnson/radiant-rss-reader

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 9
  • Source
  • Commits
  • Network (9)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • old
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Feed reader for Radiant CMS — Read more

  cancel

http://www.hellovenado.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

extracted bare-URI functionality into its own tag 
James MacAulay (author)
Mon Sep 15 13:04:03 -0700 2008
commit  5e4de18b3cae9088128391728aab6712a89efa1e
tree    8cd162995269aeb74c462f04e88667c0ad410e08
parent  e22bc324c4a3f587b445fa11baf0db0b8ca6631b
radiant-rss-reader /
name age
history
message
file .gitignore Loading commit data...
file CHANGELOG
file README.markdown Mon Sep 15 13:04:03 -0700 2008 extracted bare-URI functionality into its own tag [James MacAulay]
directory lib/
file rss_reader_extension.rb Mon May 12 09:17:25 -0700 2008 reorganize dir structure; update README [James MacAulay]
README.markdown

ABOUT

This is a RadiantCMS extension (originally a behavior by Alessandro Preite Martinez) that adds some tags to fetch and display RSS feeds. It uses the 'ruby-feedparser' module, and it is able to cache the raw feed data and to only fetch the new feed if it has been modified (using the If-Modified-Since HTTP header).

INSTALLATION

via Git

cd RADIANT_APP_ROOT
git clone git://github.com/lorenjohnson/radiant-rss-reader.git vendor/extensions/rss_reader

via Git (as submodule)

cd RADIANT_APP_ROOT
git submodule add git://github.com/lorenjohnson/radiant-rss-reader.git vendor/extensions/rss_reader

...then git submodule init and git submodule update as necessary.

via tarball

Download the tarball from http://github.com/lorenjohnson/radiant-rss-reader/tarball/master into RADIANT_APP_ROOT/vendor/extentions, then:

cd RADIANT_APP_ROOT/vendor/extentions
tar xvzf lorenjohnson-radiant-rss-reader.tgz
mv lorenjohnson-radiant-rss-reader rss_reader

USAGE EXAMPLE

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

<dl>
 <r:feed:items url="http://www.somefeed.com/rss" limit="5">
  <dt><r:feed:link /> - by <r:feed:creator />, <r:feed:date format="%b %d"/></dt>
  <dd><r:feed:content /></dd>
 </r:feed:items>
</dl>

You can also order by some feed entry attribute other than the date:

<ul>

  <r:feed:items
      url="http://feeds.boingboing.net/boingboing/iBag" 
      order="creator ASC">

    <li><r:feed:link /></li>

  </r:feed:items>

</ul>

And you can do headers to mark off sections:

<ul>

  <r:feed:items
      url="http://feeds.boingboing.net/boingboing/iBag" 
      order="creator ASC">

    <r:feed:header for="creator">
      <h2><r:feed:creator /></h2>
    </r:feed:header>

    <li><r:feed:link /></li>

  </r:feed:items>

</ul>

You can sort items and group headers by date, title, content, creator, or link (i.e. the URL of the item). There are more things you can do, which are documented in rss_reader.rb.

CONTRIBUTORS

Original Author:

  • Alessandro Preite Martinez (ale@incal.net)

Port to Extension:

  • BJ Clark (bjclark@scidept.com, http://www.scidept.com/)
  • Loren Johnson (loren@fn-group.com, http://www.fn-group.com)

Modifications:

  • James MacAulay (jmacaulay@gmail.com, http://jmacaulay.net/)
  • Michael Hale (mikehale@gmail.com, http://michaelahale.com/)
  • Bryan Liles (iam@smartic.us, http://smartic.us/)

License - Creative Commons Attribution-Share Alike 2.5 License

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server