O'Reilly logo

Drupal 7 Fields/CCK by Dave Poon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating a template file for the Recipe content type

In this section, we will create a template file for the Recipe content type. We would like to theme the recipe content to look a bit different from the other theme on the yummy recipe website, so that it is easier for people to recognize the content differences on the website.

  1. Go back to our yummyrecipe theme directory, drupalroot/sites/all/themes/yummyrecipe.
    Time for action – creating a template file for the Recipe content type
  2. Select the node.tpl.php file in the templates directory. Duplicate the file or copy and paste the file, and name the duplicate file node--recipe.tpl.php.

    Note

    Drupal 7 requires two dashes, so there are two dashes between

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required