Free Sample
+ Collection

Drupal 7 Views Cookbook

J. Ayen Green

Streamline and optimize your workflow with this fast and engaging guide to continuous delivery and DevOps. Delivering quality software every time will become a way of life.
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849514347
Paperback218 pages

About This Book

  • Brand new recipe examples using the all new Views 3 UI
  • A wide variety, including multi-display and programmatic views
  • Easy-to-follow recipes with plenty of screenshots and demonstrations

Who This Book Is For

Drupal 7 Views Cookbook is for developers or technically proficient users who are fairly comfortable with the concepts behind websites and the Drupal environment.

Table of Contents

Chapter 1: Modifying Default Views
Selecting recent comments for a specific node type
Focusing on the Archive view
Filtering the backlinks
Changing the Frontpage view
Selecting the Glossary view entries for a specific user
Creating an Attached Menu for the Taxonomy Term view
Reporting Tracker activity for a certain user role
Chapter 2: Basic Custom Views
Selecting all the nodes
Creating a Paged block display
Creating a Dynamic Links display block
Creating a Random Ad block
Using a View Content filter
Providing a user view for administrators
Winning that argument
Using Views to create a bulleted list
Creating bulleted lists using multiple content types
Chapter 3: Intermediate Custom Views
Selecting node teasers based on types and contents
Displaying a table of entity fields
Sortable table with a header and footer
Using AJAX for page changes
Understanding relationships
Grouping in a query
Nodes within nodes
Producing custom links
Proving a negative with a filter and an argument
Chapter 4: Creating Advanced Views
Creating a view with multiple personalities
Marketing bundle
Filtering with 'or'
Forming a dashboard with Page, Block, and Attachment displays
Teaming two content lists
Using related content: Adding depth to a term ID
Using related content: Adding depth to a term
Limiting visibility of content
Chapter 5: Intermediate Custom Theming Views
Changing the page template
Creating and naming a view template
Theming a field
Theming a grid
Theming a table
Theming a row
Theming rows
Theming an RSS feed
Theming a block
Theming a view page
Theming multiple displays
Image styles
Chapter 6: Creating Views Programmatically
Programming a view
Handling a view field
Styling a view field
Fine tuning the query
Chapter 7: Views Administration
Exporting a view
Importing a view
Bulk exporting views
Cloning a view

What You Will Learn

  • Present menu choices for categorized subsets of your content
  • Create blocks containing interesting lists or randomly selected images
  • Link multiple content types to provide more complete information
  • Display complementary content in additional displays
  • Design a desktop-like page driven by user input
  • Deliver a view from inside a custom module
  • Manipulate the templates to add pizzazz to your views
  • Administer your views with confidence

In Detail

The Drupal content management system is purposely created with a ‘light footprint,’ leaving it to the user or developer to add wanted features. Views is the #1 add-on module for Drupal and enables you to filter, select and present your content in ways that are more meaningful to your site visitors.

Drupal 7 Views Cookbook allows you to bypass most of the Views learning curve and quickly take advantage of the capabilities of the Views module through step-by-step instructions for quickly developing dozens of useful views.

Starting with a brief introduction to Views, Drupal 7 Views Cookbook takes you through recipes for elementary views such as displaying randomly selected content, to intermediate views such as customizing links, to advanced views using multiple displays. Along the way there are recipes for theming views, creating a programmatic view and a view handler, administering views, and finally, using some other modules related to the Views module. Recipes are standalone, so pick them in any order!

Don’t limit your site with dull content presentation. Empower your site visitors with the recipes that Drupal 7 Views Cookbook delivers!


Read More