Overriding HTML output of a content type

For many purposes, creating a content type and re-ordering the fields is enough. However, for more custom implementations you will need to modify the HTML that is output by the system. Drupal provides an elegant mechanism for overriding HTML output using template files, which specify custom HTML markup, encapsulated as a property of the theme.

Getting ready

We will be using the minimalist theme created in the first recipe of this chapter, Creating a new theme using Zen. Please complete this recipe before continuing, and ensure that you have the minimalist theme enabled.

We are going to be editing the theme, so you will need FTP access to the folder unless you are working from your localhost.

How to do it... ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.