Using attachments to extend Views' output

In this chapter, we have seen how we can create a View to output lists of nodes of a particular content type. This is perfectly adequate for most uses, but it can become slightly repetitive when you have many listings on a site. In this recipe we will be creating a view that has two displays, one which displays the three most recent news articles, each with a thumbnail image, a title, and some body text. We will then create another display to output a further 10 News articles, but in a less detailed format. Using the technique learnt in this recipe you will be able to create a multitude of Views with mixed formats suitable for pages such as homepages or landing pages, where plain list views are not quite ...

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.