(Tips) Open Source Content Management Part 4 | Generating a bespoke RSS feed

Tips : Open Source Content Management Part 4 | Generating a bespoke RSS feed

By default Drupal automatically creates a feed for the whole website.

Alternatively, you can create a feed with specific information. For this you need to create a bespoke view using the Views module. 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.

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 opinions/rss.xml as an argument feeds/%/rss.xml

Click Update
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

| Read more..

Courtesy : Brighthub.com