How To Generate Your Own RSS Feed In Drupal Using the View Module
By default Drupal automatically creates a feed for the whole website. But you can generate your own RSS feed In Drupal using the Views module to create a bespoke view If you don’t know how to do this, then you need to read my previous article in this series (Part 3). Once you have created a query, you can create an rss feed from it.
The website www.alangillies.com provides RSS feeds to allow direct access to its news items from a remote browser or news reader.
1. Create the RSS view
a. In the 1st column, select 'Feed' in the drop-down menu, and click Add Display.
b. Under Basic Settings in the 2nd column, click Row style:Missing style plugin
c. In the options that appear below the Views Interface, under Feed: How should each row in this view be styled, tick Node, then Update
This loads the next options menu- Display type:
d. Select "Use default RSS settings", click Update.
2. Set the path for accessing your feed
a. In the 2nd column under Feed settings, click Path: None
b. Enter the path. The www.alangillies.com site uses news/rss.xml as an argument feeds/%/rss.xml
You may also wish to set other options differently from the default, or from the page view. For example, the default number of items to be shown is 10, but this can be set independently for the RSS feed.
3. Sort to show most recent at top of feed
a. Scroll up to Sort criteria in the right most column and click the + icon.
b. In the Groups drop-down menu below, select 'Node', then check Node: Post date, and click Add.
c. Select Descending Sort order. Click Update.
4. Set filters to hide unpublished entries
a. Click the + icon next to Filters.
b. In the options below, select Node under Groups drop-down menu, choose the Node: Published filter, and click Add.
c. Check the box Published. Click Update default display
5. Save your RSS feed
At my own www.alangillies.com site, a page was created with the links to the various RSS feeds. This allows the feeds to be tested. It also provides a facility for web site visitors to readily select the feeds they wish to access. I have added a link to my Brighthub articles on the same page for a full list go to http://www.brighthub.com/members/profacgillies/articles.aspx.