How to: Create RSS feeds with Drupal

You have read our article on How To push RSS feeds to Twitter accounts but you don’t have a RSS feed yet ? The following might interest you.
 
Since you are aware of Drupal powerfulness, you have a super-cool fully featured website based on Drupal so the odds that you are using the Views module are high. If not, you should consider using it.
 
Now that you are ready and that you have created a Views to display your recent News or Blog posts, edit this Views and add a new display. Select “Feed” in the drop-down list and click on “Add display”.
 
Specify the path of your feed in “Feed Settings”. The more common paths are /rss or /feed.
 
We realized that, by default, Drupal will display your un-published articles in your RSS feed. To avoid that, you might want to delete the filter “Node : Published or Admin” and create a new one instead “Node : Published : Yes” (don’t forget to override the settings for this type). This small fix prevents your “not yet published” articles to be displayed on the RSS feed. It seems the other option is not working properly with the RSS display so far.
 
And that’s it, you now have a RSS feed! You can now push it to your twitter account and start to share your feeds with everybody.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post PHP code. You should include <?php ?> tags.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.
  • You may use [view:name=display=args] tags to display views.

More information about formatting options