Part of my work at jaded Pixel a few months ago was development and writing for a new “brochure” site at www.shopify.com. The current site, like the old one, is built with the fantastic Radiant CMS and uses a modified version of the rss_reader extension from BJ Clark, Loren Johnson, and Alessandro Preite Martinez.
We are using it to grab feeds that we publish in other places and re-display them to fit with the design of the site. For example our screenshots page is generated from our blog’s Shop of the Moment feed, and our list of supported methods for accepting payment is fed directly by Shopify itself.
Here is a modified version of the extension, available for your enjoyment and scrutiny:
tar xvzf rss_reader-0.2a-jadedpixelmod.tgz in your Radiant app’s root directory and it’ll put the necessary stuff in lib and vendor.Update: the extension is now on GitHub.
The modifications that I made add a few new features and, thanks to Tobi’s help, improved the robustness of the feed fetching code quite a bit. So for example, now you can order the feed however you want using a syntax similar to SQL’s ORDER BY:
You can also do headers to mark off sections:
This would show the code within the <r:feed:header /> tag if and only if the “creator” attribute of the item is different from the previous item in the list. Thus, it would only make reasonable output if the feed were ordered by creator with the above method. Another more obvious grouping for headers would be the item’s “date” attribute. Yes, the date of a feed item has hours and minutes and seconds, but I made it so that a new header only appears on new days of the month.
You can sort items and group headers by date, title, content, creator, or link (i.e. the URL of the item). There are a few other options for the feed tags that I haven’t mentioned here but which are documented within the code.

