Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Some hints about overriding themes in Drupal 6

Parent Feed: 

There's a lot to read and absorb on the new Drupal 6 but the good news is that if you've spent a while hacking version 5 you will need just a few days to get up to date.

One of my favorite changes is on theming. Now every module can provide its own .tpl.php files. To override them you just need to copy them to your theme directory and start hacking around.

Important: there's a new theme registry that has to be updated when you add or remove templates, to do so just click Clear cached data on /admin/settings/performance.

And even if using templates is the recommended method to create or modify themes in Drupal 6 you still can use good old theme_ functions.

Details can be found, as usual, on the handbook, theming Drupal 6, and there's an excellent summary presented as a flow chart (PDF, 60 Kb).

Drupal 6 theme flow

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web