Navigation Menu

Skip to content

spanner/radiant-rss_page-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS Page extension

This is a simple thing that adds a few radius tags and makes it very easy to serve RSS feeds. The assumption is that your feed has a root page: might be your blog, might be the home page if you want to serve a site feed. The feed will show everything below that page in descending order of publication date. Some tree-reading is added to the Page class to get all the descendants of a given page and we apply some crude filters to omit non-visible and non-html pages. That is all.

The 'Rss Feed' page type forces the right layout (and therefore content-type) and labels your page nicely in the tree, but doesn't do much else. You can use the RSS tags in any page.

We also have a similar podcast_page extension. It does exactly the same thing for podcasts, and ought to be made part of this one, but at the moment it requires some updates to the core RSS library so I've kept it separate. This one works as is.

Requirements

None. Radiant. Content.

Installation

As usual:

git submodule add git://github.com/spanner/radiant-rss_page-extension.git vendor/extensions/rss_page

There are no database changes.

Configuration

If you're not using multi_site, we like to have a site.title and site.url in Radiant::Config.

Status

New but simple: should just work. No tests yet.

Usage

<r:find url="/"><r:rss [format="0.9|1.0|2.0"] [title="defaults to page title"] [limit="20"] /></r:find>

Feeds should be served as application/rss+xml. Setting page type to Rss Feed will do that for you, create an RSS layout, if there isn't one already, and force the page to use that layout.

Author & Copyright

  • William Ross, for spanner. will at spanner.org
  • Copyright 2009 spanner ltd
  • Released under the same terms as Rails and/or Radiant

About

Tags and some functionality that make it easy to render an rss feed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages