Adding a block to a page

In the preceding recipe we saw how you can add custom content text to a page. However, a page can really come to life when it contains varied items of content. In this recipe, we will learn how to create a simple block using Views and then add that block to a page.

Getting ready

For this recipe, please ensure you have installed the Panels and Views modules described in the introduction to this chapter.

How to do it...

We begin this recipe by creating a new View that outputs one block display of the five latest items of content. We will then create a new Page to which we will add the Latest content block. Finally, we will save our new page and review the new page.

  1. Select Structure from the admin menu, then select Views.
  2. Select ...

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.