O'Reilly logo

Drupal 7 Theming Cookbook by Karthik Kumar

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

Styling a node listing using a Grid display

In this recipe, we will look at the ease with which we can represent the node View created in the previous recipe as a gallery by styling the View as a grid. A grid will allow us to achieve a gallery-like feel with each cell in a table layout representing a row from the result set.

Getting ready

We will be using the product_gallery View created earlier in the previous recipe. Additionally, we will need to use the Image module, as we saw in the last chapter, to customize the thumbnail for the Image field specifically for use in the product node type. To do so, navigate to admin/config/media/image-styles [Home | Administration | Configuration | Media | Image Styles] and add an Image style named product_thumb ...

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