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.
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
Edit the content type at
admin/content/types/artist
and select Automatically generate the title and hide the title field.To determine the bracketed pattern names, click on the Replacement...