Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Views Recipes

You're reading from   Drupal 5 Views Recipes 94 recipes to develop custom content displays for your Drupal web site

Arrow left icon
Product type Paperback
Published in May 2009
Publisher Packt
ISBN-13 9781847196965
Length 412 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Drupal 5 Views Recipes
Credits
About the Author
Acknowledgement
About the Reviewer
Preface
1. Introduction to Views FREE CHAPTER 2. Working with Default Views 3. CCK and Views 4. Dates and Calendars 5. Views and Tools for Administrators 6. Views Galore 7. Theming and Layout 8. Navigating the Online Drupal Community 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

Recipe 55: Views Fusion


Note

Ingredients

Recipe 31, Steps 1–6

Views Fusion module: http://drupal.org/project/views_fusion

Node Reference Patch: http://drupal.org/node/123482

In Recipe 31 (Chapter 3) we created two content types: Artist and Poster. Each artist may produce zero, one, or more posters. We used a Node Reference field in the Poster content type—populated by a simple view—to associate an artist with each poster. Finally, we created a node-artist.tpl.php template file, which displayed specific artist information, along with their posters. In Recipe 55, we also display the two content types at once, but the approach is quite different—with the Views Fusion module, we can actually combine two views into one. Essentially, we will be creating, and then joining the posters and artists views.

Patch the Node Reference module

  1. At the time this recipe is being written, a patch is required to the Node Reference module. A few caveats apply. First, check to see if the patch has already been applied...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image