Book Image

Drupal 7 Cookbook

By : Dylan Spencer James
Book Image

Drupal 7 Cookbook

By: Dylan Spencer James

Overview of this book

<p>Drupal 7 is a modern Content Management System famed for its flexibility and power. Using Drupal you can easily create custom functionality that would otherwise have to be purchased in many of the other leading CMSs.<br /><br />"Drupal 7 Cookbook" is filled with recipes to help you to do more with Drupal and improve your skills. Chapters range from content creation, to theming, to managing your site. You will learn how to create your own content types and use them to create Views, Blocks, and Pages. This book will take you from novice to pro in just 12 chapters.<br /><br />In a wide variety of practical recipes, you will learn how to work with views and panels, how to provide translations for your content to create a multilingual site, and to integrate your site with social media. You can develop the Zen starter theme or learn how to create custom cross-browser compatible Drupal themes, including themes for mobile devices. The Drupal 7 Cookbook contains all of the means necessary to take your skills from those of a novice Drupal user to a proficient site builder.</p>
Table of Contents (18 chapters)
Drupal 7 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Creating a news image grid view


Using the Drupal Views module it is possible to create a variety of different display formats including tables, lists, and grids. In this recipe, we will create a grid view to display thumbnail images and title links for the most recent News articles, as shown in the following screenshot:

Getting ready

To complete this recipe you will need to have first completed the first recipe of this chapter, Creating a news listing view. We will be making use of the News article content type and also adding a new display to the News view.

How to do it...

We will begin this recipe by creating a new page display in the News view, which we will then configure to display a grid of images and titles to represent the latest 12 News articles:

  1. 1. Select Structure from the admin menu, then select Views.

  2. 2. Select edit for the News view.

  3. 3. Select the +Add button on the display bar, then select Page:

  4. 4. In the Format section select Unformatted list.

  5. 5. Change the For field to This page...