Drupal Theming 101: Theme Developer Module

scott

If you haven't already heard of it, the Theme Developer is a great tool. It works like firebug, but for Drupal. You can click any element on the page to inspect it, and the Theme Developer window will show you what template files and functions were used to render it, and give you suggestions on which files you can edit to affect it. For a newbie Drupal themer, this can be a god-send.

Theme Developer Module

However, you should know that the Theme Developer module works by injecting code into your page. I've run into instances where the module broke some jQuery I wrote because the selector I had written was broken.

Also, you may see some effects in the admin area -- I saw that the "manage fields" page when you edit a content type was missing the neat little drag-and-drop feature.

The Theme Developer module is still valuable during production, but make sure that you disable it before you go live.

Also, if you need to quickly disable or re-enable it, there's a shortcut so you don't have to go to the modules page every time. Just click in the Drupal "start" menu in the admin bar, and choose "Disable (or Enable) developer modules."

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options