Drupal 5 Views Recipes

94 recipes to develop custom content displays for your Drupal web site

Drupal 5 Views Recipes

Progressing
Marjorie Roswell

94 recipes to develop custom content displays for your Drupal web site
$22.50
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
$12.99 p/month

Want this title & more? 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.
+ Collection
Free Sample

Book Details

ISBN 139781847196965
Paperback412 pages

About This Book

  • Display particular types of content in unique and compelling ways on your Drupal web site
  • Enhance your web site with calendars, timelines, galleries, maps, podcasts, Views Fusion, and more
  • Indispensable resources for Drupal 5 Administrators – Drupal Administration Menu, Views Bulk Operations, ModuleInfo, and Editable Fields modules
  • More than 90 recipes – pick the ones that work best for your web site

Who This Book Is For

This book is primarily written for Drupal site builders, administrators, and themers who want to develop custom content displays using Views. It can be used by anyone who has a Drupal 5 web site, including original site developers as well as people who have inherited a Drupal 5 site.

Some knowledge of HTML and CSS is required; PHP basics will be handy for some of the recipes.

 

Table of Contents

Chapter 1: Introduction to Views
Recipe 1: Installing the Views module
Recipe 2: Views-related URLs on your site
Recipe 3: Creating a "Swim Groups" Page View
Recipe 4: Adding a Header to your View
Recipe 5: Adding a View to a Menu
Recipe 6: Creating a Block of Swim Groups
Recipe 7: Creating an "Admin" Role and setting Access Permissions
Recipe 8: Installing Firefox and Firebug
Recipe 9: Revealing the full extent of Views
Recipe 10: Preparing Views Worksheets
Summary
Chapter 2: Working with Default Views
Recipe 11: Adding "Recent Comments" to your site
Recipe 12: The frontpage View
Recipe 13: Read More link
Recipe 14: All-time Popular, and Recent Popular Pages
Recipe 15: All-time Popular, and Recent popular Blocks—removing the hit count
Recipe 16: Taxonomy View
Recipe 17: Fixing the case of the missing Taxonomy term
Recipe 18: Empty Text, with PHP
Recipe 19: Getting to know the Tracker
Recipe 20: Making the Tracker Sortable
Recipe 21: Integrating the Tracker View with the Tracker module
Recipe 22: Reviewing Default Views code
Recipe 23: Creating a Default View
Summary
Chapter 3: CCK and Views
Recipe 24: Addressing the Views Body Field issue
Recipe 25: Creating Website snapshots
Recipe 26: Creating a Blogroll
Recipe 27: Displaying Guitar Chords
Recipe 28: Using the Viewfield module
Recipe 29: Using the Node Reference module
Recipe 30: Relating Content types with Reverse Node Reference
Recipe 31:Embedding a View in a Theme template
Recipe 32: Displaying mini-pie charts
Summary
Chapter 4: Dates and Calendars
Recipe 33: Understanding Date formats
Recipe 34: Block of upcoming workshops
Recipe 35: Exposed Filters
Recipe 36: Views Date Range Filter module
Recipe 37: Exposed Filter settings
Recipe 38: Summary Views
Recipe 39: Date Browser
Recipe 40: Timeline
Recipe 41: Views Popup
Recipe 42: Creating a Calendar
Recipe 43: iCal feeds
Recipe 44: Upgrade Date and Calendar modules
Summary
Chapter 5: Views and Tools for Administrators
Recipe 45: Administration menu
Recipe 46: ModuleInfo
Recipe 47: Views UI permissions
Recipe 49: Editablefields
Recipe 50: Views Bulk Operations—Content administration
Recipe 51: Views Bulk Operations—Taxonomy assignment
Recipe 52: Views Custom Field
Recipe 53: Cron setup
Recipe 54: Formatting Views queries
Summary
Chapter 6: Views Galore
Recipe 55: Views Fusion
Recipe 56: Views Fast Search
Recipe 57: YouTube Video Bar
Recipe 58: Views Bonus Pack Export
Recipe 59: Photo Gallery
Recipe 60: Gallery with Lightbox2 and jQuery Update
Recipe 61: Google Maps
Recipe 62: Proximity Search
Recipe 63: Views Calculations
Recipe 64: Podcasting
Recipe 65: Using the Flag module for Bookmarks
Recipe 66: Using the Flag module for various use cases
Recipe 67: Explore more Views, Galore
Summary
Chapter 7: Theming and Layout
Recipe 68: Themeable functions reference
Recipe 69: Displaying Themeable function names in Source Code
Recipe 70: Using Panels with SimpleFeed
Recipe 71: Tweaking output with hook_link_alter
Recipe 72: Debugging
Recipe 73: Node-feed-item.tpl.php
Recipe 74: Format the Pager with CSS-only modifications
Recipe 75: Overriding the theme_pager function
Recipe 76: Understanding how Theme functions are called
Recipe 77: Override theme_views_view
Recipe 78: Total Item count
Recipe 79: Views Theme Wizard
Recipe 80: Date badge
Recipe 81: Grouped View
Recipe 82: Body classes
Recipe 83: Carousel View
Recipe 84: Views Dashboard—code approach
Recipe 85: Views Dashboard—module approach
Recipe 86: Great Online Theming resources
Summary
Chapter 8: Navigating the Online Drupal Community
Recipe 87: Creating an issue Page Bookmark
Recipe 88: Searching the Views issue queue
Recipe 89: Posting an issue
Recipe 90: Applying a Patch
Recipe 91: Creating a Patch
Recipe 92: Installing a Search plugin for the Contributions API
Recipe 93: Using IRC—real-time technical support
Recipe 94: Exploring Resources
Summary

What You Will Learn

  • Master the Views User Interface
  • Create views arguments
  • Implement and create default views for recent comments, the frontpage, group listings, and more
  • Explore a variety of ways to associate views with related content
  • Display event listings, calendars, and timelines
  • Make site administration easier using several administration modules
  • Enhance your web site with Google Map tools, YouTube video bar, photo gallery, audio, and Views Fast Search
  • Enable your users to flag and bookmark content for later viewing
  • Incorporate views into panels and tabs
  • Create a directory of available theme functions, and learn some key debugging strategies
  • Use theme overrides and CSS to create more attractive views
  • Fix the long-standing taxonomy term bug, and the body field Views display issue
  • Create and apply patches
  • Create some helpful browser buttons and search plug-ins to facilitate finding information online

Here is the brief summary of what each chapter covers:

Chapter 1 – Introduces the Views module, along with a Views Worksheet that will serve as a guide throughout the rest of the book. We create a basic view of Swim Groups.

Chapter 2 – In this chapter, we look at the six "default views" that come with the Views module. We learn which modules must be enabled for these views to appear, and we get to know the feed selector and Term arguments. We close the chapter by creating a module with a default view of Swim Groups.

Chapter 3 – In this chapter, we incorporate CCK fields into views such as a Blog Roll, Guitar Chord Display, and a Block of Media Hits Associated with Press Releases. We share a variety of ways to associate views with related content, including Viewfield and Node Reference modules, and building views from within a template.

Chapter 4 – In this chapter we focus on date fields, calendars, upcoming events, and the timeline module. This chapter rounds out coverage of all of the Views User Interface fieldsets, including Exposed Filters.

Chapter 5 –
In this chapter, we examine ten tools to ease the work of site administrators, including Views Bulk Operations, Editable Fields, ModuleInfo, and setting up cron

Chapter 6 – In the “Views Galore” chapter, we explore some rarely-covered but powerful modules, including: Views Fusion, Views Fast Search, Views Bonus Pack Export, and Google Maps Tools. We also create a YouTube Video Bar, detail the steps to install jQuery Update with a Lightbox2 Gallery, and examine how to use the Flag module for a variety of applications.

Chapter 7 – This is the theming chapter, a bit more code-rich than the others. We create a directory of available theme functions. We look closely at Views theme functions and override them when necessary. We cover some debugging strategies. We use CSS to create "date badges" and to control carousel formatting. Finally, we incorporate views into panels and tabs.

Chapter 8 – In this chapter, we focus on navigating the online Drupal community. We learn how to search the Views issue queue, and how to apply and create patches. We cover some Do's and Don'ts in Drupal chat on IRC, and create a few helpful browser buttons and search plug-ins to facilitate finding information online.

Appendix A – List of all default views available for Drupal 5

Appendix B – Comprehensive list of Drupal 5 field formatters, by module

Appendix C – Comprehensive list of Drupal 5 style plug-ins, by module

Appendix D – Views 1 hooks

Appendix E – Modules included in recipe ingredients

Appendix F – Additional resources and modules

Appendix G – Selected noteworthy patches to views, sorted by topic

In Detail

The Drupal View modules give you flexibility and freedom to customize the display of your web site's content. Although there are more than 100 views-enabled modules, few site administrators use Drupal Views to its full potential.

This book will enable you to realize the fullest potential of this powerful resource by providing a wide variety of powerful recipes for creating and displaying a wide variety of views – essential classics you will use again and again to innovative display methods that will make your Drupal site stand out. Pick and choose the ones you would like to prepare for your web site.

In this book you will find ninety-four recipes to create a wide selection of views. The list includes event listings, interactive calendars and timelines, maps, proximity search, podcasting, carousels, Views Fusion, and many more. You will also explore default views, views with CCK, and master a variety of ways to associate views with related content.

Most people think of Views for site visitors. But Views can also be handy for site administrators. You will get to know the Views Bulk Operations module, along with Editable Fields, and Views Custom Fields. (You’ll probably wonder why you never used them before!)

If you want to take Views to the next level, the book contains a code-rich chapter on theming. However, you will find most of the recipes detailed by the author do not require any original coding at all.

As you progress through the recipes, you will be immersed in such Drupal Views topics as fields, arguments, filters, exposed filters, sorting, style plug-ins, formatters, cloning and copying views.

Because Drupal is a worldwide and ever adapting system, the author also includes great tips and resources for navigating the online Drupal community and expanding your knowledge of the recipes.

Finally, there is an extensive Appendix, which includes listings of all default views, formatters and style plug-ins for Drupal 5, along with a categorized list of patches.

Authors

Table of Contents

Chapter 1: Introduction to Views
Recipe 1: Installing the Views module
Recipe 2: Views-related URLs on your site
Recipe 3: Creating a "Swim Groups" Page View
Recipe 4: Adding a Header to your View
Recipe 5: Adding a View to a Menu
Recipe 6: Creating a Block of Swim Groups
Recipe 7: Creating an "Admin" Role and setting Access Permissions
Recipe 8: Installing Firefox and Firebug
Recipe 9: Revealing the full extent of Views
Recipe 10: Preparing Views Worksheets
Summary
Chapter 2: Working with Default Views
Recipe 11: Adding "Recent Comments" to your site
Recipe 12: The frontpage View
Recipe 13: Read More link
Recipe 14: All-time Popular, and Recent Popular Pages
Recipe 15: All-time Popular, and Recent popular Blocks—removing the hit count
Recipe 16: Taxonomy View
Recipe 17: Fixing the case of the missing Taxonomy term
Recipe 18: Empty Text, with PHP
Recipe 19: Getting to know the Tracker
Recipe 20: Making the Tracker Sortable
Recipe 21: Integrating the Tracker View with the Tracker module
Recipe 22: Reviewing Default Views code
Recipe 23: Creating a Default View
Summary
Chapter 3: CCK and Views
Recipe 24: Addressing the Views Body Field issue
Recipe 25: Creating Website snapshots
Recipe 26: Creating a Blogroll
Recipe 27: Displaying Guitar Chords
Recipe 28: Using the Viewfield module
Recipe 29: Using the Node Reference module
Recipe 30: Relating Content types with Reverse Node Reference
Recipe 31:Embedding a View in a Theme template
Recipe 32: Displaying mini-pie charts
Summary
Chapter 4: Dates and Calendars
Recipe 33: Understanding Date formats
Recipe 34: Block of upcoming workshops
Recipe 35: Exposed Filters
Recipe 36: Views Date Range Filter module
Recipe 37: Exposed Filter settings
Recipe 38: Summary Views
Recipe 39: Date Browser
Recipe 40: Timeline
Recipe 41: Views Popup
Recipe 42: Creating a Calendar
Recipe 43: iCal feeds
Recipe 44: Upgrade Date and Calendar modules
Summary
Chapter 5: Views and Tools for Administrators
Recipe 45: Administration menu
Recipe 46: ModuleInfo
Recipe 47: Views UI permissions
Recipe 49: Editablefields
Recipe 50: Views Bulk Operations—Content administration
Recipe 51: Views Bulk Operations—Taxonomy assignment
Recipe 52: Views Custom Field
Recipe 53: Cron setup
Recipe 54: Formatting Views queries
Summary
Chapter 6: Views Galore
Recipe 55: Views Fusion
Recipe 56: Views Fast Search
Recipe 57: YouTube Video Bar
Recipe 58: Views Bonus Pack Export
Recipe 59: Photo Gallery
Recipe 60: Gallery with Lightbox2 and jQuery Update
Recipe 61: Google Maps
Recipe 62: Proximity Search
Recipe 63: Views Calculations
Recipe 64: Podcasting
Recipe 65: Using the Flag module for Bookmarks
Recipe 66: Using the Flag module for various use cases
Recipe 67: Explore more Views, Galore
Summary
Chapter 7: Theming and Layout
Recipe 68: Themeable functions reference
Recipe 69: Displaying Themeable function names in Source Code
Recipe 70: Using Panels with SimpleFeed
Recipe 71: Tweaking output with hook_link_alter
Recipe 72: Debugging
Recipe 73: Node-feed-item.tpl.php
Recipe 74: Format the Pager with CSS-only modifications
Recipe 75: Overriding the theme_pager function
Recipe 76: Understanding how Theme functions are called
Recipe 77: Override theme_views_view
Recipe 78: Total Item count
Recipe 79: Views Theme Wizard
Recipe 80: Date badge
Recipe 81: Grouped View
Recipe 82: Body classes
Recipe 83: Carousel View
Recipe 84: Views Dashboard—code approach
Recipe 85: Views Dashboard—module approach
Recipe 86: Great Online Theming resources
Summary
Chapter 8: Navigating the Online Drupal Community
Recipe 87: Creating an issue Page Bookmark
Recipe 88: Searching the Views issue queue
Recipe 89: Posting an issue
Recipe 90: Applying a Patch
Recipe 91: Creating a Patch
Recipe 92: Installing a Search plugin for the Contributions API
Recipe 93: Using IRC—real-time technical support
Recipe 94: Exploring Resources
Summary

Book Details

ISBN 139781847196965
Paperback412 pages
Read More