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

Creating a simple View

In this recipe, we will look at the ease with which we can create a simple unformatted node listing using the Views module. This View, which will represent a list of products as a rudimentary gallery, will be used as an example later in this chapter.

Getting ready

The View we will be creating will display a list of nodes of a custom node type named product. Besides the standard fields of Title and Body, this node type also contains two additional fields named Image and Price which are of type Image and Number (Decimal) respectively, as the following screenshot will attest. It is assumed that these field modules have been enabled along with any dependencies.

Once the product node type has been created, sample products and product ...

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