Create a RSS Feed from a Drupal View
I would never want there to be a day when I didn't learn something new. I thrive off new ideas. New blog posts. New directions. And right now, it's everything new in Drupal.
(I should clarify something here: New to me, may not be new to you.)
On Monday evening, the team was here late finishing out our second Sprint Planning Meeting. Around 8pm, our Developer, Dustin Currie, mentioned that one of our recent projects was not setup for users to subscribe to the blog and articles RSS feed. We were two days from launching this project, and I was perplexed that this was being brought up right then, because everyone at LevelTen understands the importance of an RSS feed. And we were about to launch a site that didn't have it setup! I said, "Show me. Show me how to set it up so that it doesn't get overlooked the next time!" Like I said, I love learning new things. Perhaps you do, too, and will have use for this on your current/past/or future projects.
I am going to begin assuming you already have a view setup on your site for a blog/article/news/podcast/etc.
- Begin by Editing the view.
- Add a new display using the drop down box and select Feed. Your default settings will carry over to the Feed view, and that is fine. There are only a few settings you are going to change and one you will Override from the other settings.
- Under Basic Settings: Click the settings box for Title. Make sure you click Override before giving the Feed a Title. This will ensure you do not override your other displays. Give the feed a title and click Update. This will show up in the user's Reader. If you leave this blank, the feed will read: (title unkown)
- Below Style: Change Row Style to Node. The setting in Row Style is how you want the feed to display in the Reader (i.e. Full Text, Title + Teaser, or Title Only). Click Update.
- Next: Define your path under Feed Settings. Give it something like "...blog/feed". Attach the feed to the Page in order to see the orange feeder icon.
- Save the View.
- Finally, go back to the front end view and you will see the Feed icon for that page.