RSS feeds for Views

Last modified: March 24, 2009 - 00:21

Views can have RSS feeds so that users can read the items in their news reader as they get added to the view.

  1. enable the "views_rss" module in administer » modules
  2. create or edit a view (under administer » views)
  3. in your view, click on the "Arguments" heading to reveal its settings
  4. under "Add Argument", select "RSS: RSS Feed Selector", then the "Add Argument button"
  5. select the default as "Display All Values"
  6. save the view as usual, or continue creating the view

This automatically creates an RSS feed for the view, and adds a feed icon at the bottom of the view. It also enables RSS autodiscovery for that view, so that you can just copy the URL of the view into the news reader (also some browsers will make note of the feed so that you can subscribe to it).

The feed becomes available at whatever the URL is for the view, plus "/feed".

Note: to add CCK fields in addition to the Title and Body fields you should look at the Content Template module.

Note: Views for Drupal 6 takes a different approach.

Argument Handling Code

mrwendell - August 21, 2007 - 04:41

You might be able to get around this by with the Argument Handling Code option in the views argument fieldset to flip your arguments around or to flip on the wild card in certain circumstances.

For me I had one argument then I added the RSS argument and only one RSS link showed up.
My view is set up as follows

viewpath/arg1/rss

When I clicked on the link on the base (viewpath/) the like was viewpath/*/rss - this returned a page not found until I went to my first argument and set the wildcard to '*' then everything worked fine.

For example I used

channel/columns/column+name

Where channel/columns is the view name and "column+name" is the name of an argument. channel/columns/*/rss gave an RSS feed of all the columns and channel/columns/column+name/rss gave the rss feed for the "column+name" column only.

I am using drupal 5.2 and views 5.x-1.6

I cannot find views_rss in

giorgio79 - January 18, 2009 - 06:42

I cannot find views_rss in Drupal 6, any ideas?

Review Critical
ClipGlobe - World Travel

Drupal 6 Does RSS Feeds in Views Differently

Shane Birley - January 29, 2009 - 01:35

Does this only work on page output?

BradleyT - January 21, 2009 - 20:20

My view outputs to a block and I cant seem to get this to work.

 
 

Drupal is a registered trademark of Dries Buytaert.