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.
For this recipe, please ensure you have installed the Panels and Views modules described in the introduction to this chapter.
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 +Add new view.
3. In the View name field enter Latest content.
4. Uncheck the Create a page field and check the Create a block field.
5. Leave the Create a block field options in their default states click on Save & exit:
6. Select Structure...