O'Reilly logo

Using Drupal, 2nd Edition by Bruno De Bondt, Addison Berry, Angela Byron

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

Chapter 5. Product Reviews

With more and more options for shoppers arriving on the Internet every day, finding the right products can be a challenge. Special interest websites that feature specific kinds of products and reviews by dedicated hobbyists are a popular way to help consumers sort through all of the options and find the right stuff. In this chapter, we’re going to use a handful of Drupal modules to build a product review website that lets community members give their opinions on every featured product.

This chapter introduces the following modules:

Field Group

Allows fields to be grouped into fieldsets

Amazon

Gathers product information from Amazon.com

Voting API

Provides a framework for standardizing voting data

Fivestar

Allows rating of content

Search (core)

Indexes content and allows searching within a site

CSS Injector

Allows administrators to easily add CSS styling to the site

If you would like to participate in the hands-on exercises in this chapter, install Drupal using the Reviews installation profile from the book’s sample code. This will create the example website on your web server. The completed website will look as pictured in Figure 5-1 and found at http://reviews.usingdrupal.com. For more information on using the book’s sample code, see the Preface.

The completed Super Duper Chefs website

Figure 5-1. The completed Super Duper Chefs website

Case Study

Bob and Sarah are coworkers and food lovers who’ve both built ...

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