«« Blogs at FanConcert Make a <div> not 100% wide? »»
blog header image
FanConcert is Syndicated

I'm very happy to announce that I've added syndication feeds (RSS, Atom and OPML) to all searches in FanConcert. The URLs for the syndication formats are simple and clean. For example, upcoming concerts for Coldplay have a search URL of:

/search/concerts?sort_attribute=day&after=now&artist_id=1

The corresponding RSS and Atom feeds have /rss and /atom just after the domain name:

/rss/search/concerts?sort_attribute=day&after=now&artist_id=1
/atom/search/concerts?sort_attribute=day&after=now&artist_id=1

Ruby on Rails routing makes these types of URLs very easy to do. I just set up the following routes:

# Syndication formats
map.connect '/rss/:controller/:action', :format => 'rss'
map.connect '/atom/:controller/:action', :format => 'atom'
map.connect '/opml/:controller/:action', :format => 'opml'

# Install the default route as the lowest priority.
map.connect ':controller/:action/:id'

I'm using the new Feed Icon to link the feeds. This icon has already been adopted by FireFox and IE7, so people will be able to recognize it and what it means.


The icon is linked to the type of feed (RSS or Atom) that the FanConcert member chooses in preferences. By default (and for non-members) it is RSS.

Posted at February 23, 2006 at 01:36 PM EST
Last updated February 23, 2006 at 01:36 PM EST
Comments
Google
 
Search scope: Web ryanlowe.ca