Another great feature of views is its ability to generate RSS feeds from content on your site. RSS stands for Rich Site Summary or Really Simple Syndication (depending on who you talk to). Site visitors can use this to display content from your site in a feed reader like Feedly, Pocket or Digg Reader. Any view can have an RSS feed by simply adding a Feed display to the view. In this video, I will show you how to create a new view that will display a table of sale events and include an RSS feed. To do that:

Create a view

  • Go to "Structure => Views => Add new view" (admin/structure/views)
  • View name: All Events
  • [x] Description: This is a table of all Sale Events
  • Show: Content
    • of type: Event
    • sorted by: Newest first
  • Display format: Table (This will render specific fields as rows and columns, in a format that can be sorted by the user by clicking on the column titles)
  • [x] Include a RSS feed (This will automatically include an RSS feed display)
  • (Continue & Edit)

Fields

  • Click "Add" next to Fields
    • [x] Content: Date
  • (Apply(all display))
  • Choose how users view dates and times: Short
  • (Apply(all display))

Format

  • Format
    • Click "Settings"
    • Sortable
      • [x] Title
      • [x] Content: Date
    • Grouping field Nr.1: None (This setting provides the ability to group values in our table by a specific column in the view. ie: If we chose to group all of our Events by Date. Each date would then have its own separate table in the view.)
  • (Apply(all displays))

Page settings

  • Menu
    • Click "No menu"
    • Type: [x] Normal menu entry
      • Title: All Events
      • Menu: Main menu
      • Weight: 2 (So that it is listed at the right of the menu)
  • (Apply)
  • (Save) (Save the view)

Now, when we go home, we can click on the “All Events” link and see our table. You’ll also notice the RSS icon below the view. If I click on that icon, the RSS feed is displayed in my browser, and this URL is what would be entered into a feed reader.

In the next video, we'll add an RSS feed display to an existing view and explore the feed settings.