Book Image

Drupal 5 Views Recipes

Book Image

Drupal 5 Views Recipes

Overview of this book

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.
Table of Contents (22 chapters)
Drupal 5 Views Recipes
Credits
About the Author
Acknowledgement
About the Reviewer
Preface
Default Views in Drupal 5 Modules
Formatters
Style Plugins
Views Hooks for Coders
Modules Included in Recipe Ingredients
Additional Resources and Modules Mentioned in Recipes
Selected Noteworthy Patches to Views
Index

Acknowledgement

I have lots of people to happily and gratefully thank.

Thanks to my parents, Arthur and Betty Roswell, for always expressing interest in something I'm not sure they ever learned to pronounce.

Thanks to Bob Roswell, my computer scientist brother. He gave me my first real job at ComputerLand back in 1985, and set me up with my Linux web server about a decade later.

Thanks to Barbara Roswell, my sister-in-law, and a professor of writing, for thoughtful and helpful ideas.

Thanks to my sister, Judy Roswell Weinstein and her wonderful family who managed to get me out on a glacier when I thought I should be writing during vacation. Her oldest son, Ari (AriX, at http://drupal.org/user/214187) was a Drupal GHOP participant, and his family usability study yielded a few installation patches in Drupal 6.

Thanks to Earl Miles (merlinofchaos, at http://drupal.org/user/26979) for writing the amazing Views module, and to Daniel F. Kudwien (sun, at http://drupal.org/user/54136), for co-maintaining Views 5.x.

Thanks to the awesome world Drupal community. (As I write this, the newest members of drupal.org come from Uganda, Belgium, United States, India, Hungary, Ireland, and Finland.) The book appendices list the maintainers of hundreds of Views-enabled modules.

Thanks to my nearest Drupal neighbor, mathematician Emil Volcheck (http://groups.drupal.org/user/33466), for kindly testing out the Node Reference recipes.

Thanks to Aaron Stewart for preparing a helpful script to download all versions of Drupal 5 modules.

Thanks to FreeDigitalPhotos.net for the lovely photographs used in our gallery, lightbox2, and carousel recipes. (Photo sources are detailed in the book downloads in Chapter 6, Recipe 59)

Thanks to Curtis Clark for creating the terrific Pie Charts for Maps font.

Thanks to Rob Ellis and James Harris, of MySafeWork.com, for the site screenshot and their good work.

Thanks to Joe Sances for permission to use his poster, Unarmed Truth, in a screenshot.

Thanks to Peter Montague for free reign to share content from http://rachel.org. Dr. Montague introduced me to the Precautionary Principle, and compelling information on health and the environment.

Thanks to Stephanie Pakrul, for permission to adapt one of her beautiful Top Notch Themes (http://topnotchthemes.com).

Thanks to Leena Purkait, Project Coordinator, for keeping track of innumerable chapters, rewrites, worksheets, and appendices, and for always including smiley faces when inviting me to submit chapters on time.

Thanks to Ved Prakash Jha, Development Editor, for reading and thoughtfully responding to every single one of my emails!

Thanks to David Barnes, Senior Acquisition Editor for liking my book idea enough to send a contract.

Thanks to Reviewer Dave Myburgh, (ncrn8, at http://drupal.org/user/51467) whose eagle eye has greatly improved this book, and whose positive remarks in the document margins warmed the heart of the author.

Thanks to my Technical Editors, Hithesh Uchil and Bhupali Khule, who have made this a better book.

Kudos to the Friendly Coffeehouse community, the Baltimore Urban Agriculture Task Force, and Baltimore EarthSave. Every one of them does such important work and play that each merited a Drupal website.

Thanks to many friends: Leah Ulansey, Naomi Bernstein, Matthew Clark, Joanne Stato, Jonathan Rudie, and Mark Edwards, who contributed the lovely music for the podcasting recipe.

Thanks to Wordsmith Joe for words and support.

Thanks to friend and client, Dan Walsh, who has more than once given me the chance to say, "I've got a recipe for that!"