Creating a latest news block

One of the useful features of Views is that it allows us to create custom blocks that can be used to display our content in many different ways. In this recipe we will be using the News article content type and expanding on the News view to create a block that we will use to display the five most recent News articles added to the site.

Getting ready

To complete this recipe you will need to have first completed the first recipe of this chapter, Creating a news listing view. We will be building upon both the News article content type and the News view.

How to do it...

To complete this recipe we are first going to modify the existing News view by adding a block display to it. We will then configure the block display to display ...

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.