Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 31:Embedding a View in a Theme template


Note

Ingredients

Content module: http://drupal.org/project/cck

Node reference field, included in CCK module

Automatic Nodetitles: http://drupal.org/project/auto_nodetitle

Token module: http://drupal.org/project/token

Imagefield module: http://drupal.org/project/imagefield

Artist Content type

Poster Content type and View

This recipe performs a similar function as the Recipes 28 and 30, but takes a different approach. Using a template file, and a small mix of modules and views functions, we will embed all posters produced by an artist under the artist's description.

  1. Create a content type named artist to include the following text fields.

    Field Name

    Field Type

    Label

    artist_first_name

    Text

    First Name

    artist_last_name

    Text

    Last Name

    artist_nationality

    Text

    Nationality

  2. Edit the content type at admin/content/types/artist and select Automatically generate the title and hide the title field.

  3. To determine the bracketed pattern names, click on the Replacement...

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