O'Reilly logo

Drupal 7 by David Mercer

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

Additional theming

Recall from the previous two chapters that it is possible to override the default template files in favor of our own template files. In views, we used the theme information to tell us which template filenames the Views system would work on and we then modified one of those. In the theme chapter, we modified the block template file by copying it to our subtheme and making changes.

In this section, we are going to look at how to override the template file for an entire content type. This allows us to create an entirely unique look and feel for any content type we choose. To compliment this theme-related task, we'll follow up with a more detailed example of theming a view.

The goal of this section is to provide the basic features ...

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