The Definitive Guide to Drupal 7

Sustainability and Best Practices

Drupal contains many, many template files. For a front-end developer, these are one of your greatest tools in taking over a Drupal theme and turning it into exactly what you need it to be. However, with power comes responsibility. Because working with template files is so easy, it’s also an area where you can get in trouble quickly.

Most front-end developers experience some frustration working with Drupal’s markup. Because it’s relatively easy to go in and make changes, doing exactly that is often a first reflex. Resist it. While you’ll definitely feel the power and control you have over things, changing too many template files is often the wrong approach. Just because you can change things doesn’t always mean you should.

You are reading content from two chapters on Theme Development from The Definitive Guide to Drupal 7, written by Jacine Luisi and published by Apress on July 19, 2011. All rights reserved.