Creating a block with Views

In this recipe, we will be creating a very simple block to display the five most recent items of content. To achieve this we will be using the Views module.

Getting ready

For this recipe you will need to install and enable the most recent recommended releases of the following modules:

You will also need at least five existing items of content (of any content type) for demonstrating the new block.

How to do it...

  1. Select Structure from the admin menu and then select Views.
  2. Select +Add new view.
    How to do it...
  3. In View name enter Recent content listings.
  4. Ensure that the first fieldset ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.