You are previewing Drupal 7 Views Cookbook.
O'Reilly logo
Drupal 7 Views Cookbook

Book Description

Over 50 recipes to master the creation of views using the Drupal Views 3 module

  • 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

  • In Detail

    Fully revised and updated for 2016, 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 to select and present your Drupal content 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 providing multiple interacting displaysof content on the same page. Along the way, there are recipes for theming views, creating a view in your code, creating a custom view handler, administering views, and finally, using some other modules related to the Views module. Most recipes are standalone, so pick them in any order!

    Don't limit your site with dull presentation of content in last-in-first-out order. Empower your site visitors with the recipes that Drupal 7 Views Cookbook delivers!

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

    1. Drupal 7 Views 3 Cookbook
      1. Table of Contents
      2. Drupal 7 Views 3 Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What is a view?
        2. What this book covers
        3. What you need for this book
        4. Who this book is for
        5. Conventions
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Modifying Default Views
        1. Introduction
        2. Selecting recent comments for a specific node type
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Focusing on the Archive view
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Filtering the backlinks
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Changing the Frontpage view
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Selecting the Glossary view entries for a specific user
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Creating an Attached Menu for the Taxonomy Term view
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        8. Reporting Tracker activity for a certain user role
          1. Getting ready
          2. How to do it...
          3. How it works...
      9. 2. Basic Custom Views
        1. Introduction
        2. Selecting all the nodes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Creating a Paged block display
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Creating a Dynamic Links display block
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Creating a Random Ad block
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Using a View Content filter
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Providing a user view for administrators
          1. How to do it...
          2. How it works...
          3. There's more...
        8. Winning that argument
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        9. Using Views to create a bulleted list
          1. How to do it...
          2. How it works...
          3. There's more...
        10. Creating bulleted lists using multiple content types
          1. Getting ready
          2. How to do it...
          3. How it works...
      10. 3. Intermediate Custom Views
        1. Introduction
        2. Selecting node teasers based on types and contents
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Displaying a table of entity fields
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Sortable table with a header and footer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Using AJAX for page changes
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Understanding relationships
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Grouping in a query
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Nodes within nodes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        9. Producing custom links
          1. Getting ready
          2. How to do it...
          3. How it works...
        10. Proving a negative with a filter and an argument
          1. Getting ready
          2. How to do it...
          3. How it works...
      11. 4. Creating Advanced Views
        1. Introduction
        2. Creating a view with multiple personalities
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Marketing bundle
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Filtering with 'or'
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Forming a dashboard with Page, Block, and Attachment displays
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Teaming two content lists
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Using related content: Adding depth to a term ID
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Using related content: Adding depth to a term
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Limiting visibility of content
          1. How to do it...
          2. How it works...
      12. 5. Intermediate Custom Theming Views
        1. Introduction
        2. Changing the page template
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Creating and naming a view template
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Theming a field
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Theming a grid
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Theming a table
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Theming a row
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        8. Theming rows
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        9. Theming an RSS feed
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        10. Theming a block
          1. Getting ready
          2. How to do it...
          3. How it works...
        11. Theming a view page
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        12. Theming multiple displays
          1. How to do it...
          2. How it works...
          3. There's more...
        13. Image styles
          1. Getting ready
          2. How to do it...
          3. How it works...
      13. 6. Creating Views Programmatically
        1. Introduction
        2. Programming a view
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Handling a view field
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Styling a view field
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Fine tuning the query
          1. Getting ready
          2. How to do it...
          3. How it works…
      14. 7. Views Administration
        1. Introduction
        2. Exporting a view
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Importing a view
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Bulk exporting views
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Cloning a view
          1. How to do it...
      15. A. Installing Views
        1. Installing Views
      16. B. Entity Types and Fields
        1. Creating content type: Country
          1. Details
          2. Creating content type: Country
        2. Creating content type: Course
          1. Details
          2. Creating content type: Course
        3. Creating content type: Department
          1. Details
          2. Creating content type: Department
        4. Creating content type: Employee
          1. Details
          2. Creating content type: Employee
        5. Creating content type: Extension
          1. Details
          2. Creating content type: Extension
        6. Creating image style: Exhibit
          1. Details
          2. Creating image style: Exhibit
        7. Creating image style: Exhibit_teaser
          1. Details
          2. Creating image style: Exhibit_teaser
        8. Creating image style: Exhibit_block
          1. Details
          2. Creating image style: Exhibit_block
        9. Creating content type: Gallery
          1. Details
          2. Creating content type: Gallery
        10. Creating content type: Home
          1. Details
          2. Creating content type: Home
        11. Creating content type: Ingredient
          1. Details
          2. Creating content type: Ingredient
        12. Creating content type: Product
          1. Details
          2. Creating content type: Product
        13. Creating content type: Real Estate flier
          1. Details
          2. Creating content type: Real Estate flier
        14. Creating content type: Sponsor
          1. Details
          2. Creating content type: Sponsor
        15. Creating taxonomy tags
          1. Creating taxonomy tags
      17. Index