O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required