Chapter 5. Using Views to Create Custom Lists, Grids, and Tables

In this chapter we will cover:

  • Creating a news listing view
  • Creating a dynamic view
  • Creating a latest news block
  • Building a news image grid view
  • Creating a randomly selected list of images
  • Creating an archived content block and view
  • Building complex views using relationships
  • Using attachments to extend views' filtering functionality
  • Using attachments to extend views' output


Throughout this chapter we will explore some of the most common features of the Views module, from the basic to the advanced. Views makes it easy to create listings of your content, such as job listings or a list of products in a shop. It also allows you to set filters, and to expose those filters to the user. ...

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.