PacktLib: Drupal 5 Themes

Drupal 5 Themes


About the Author

About the Reviewer


The Elements of a Drupal Theme

What is a Theme?

What is a Templating Engine?

The Range and Flexibility of Drupal Themes

What You See on the Screen

The Big Picture: How Drupal Displays a Page

The Importance of Themes in Drupal

The Contents of the Drupal Distro

The Theme Files


Theme Set Up and Configuration

Finding Additional Themes

Installing an Additional Theme

Configuring a Theme

Managing Modules and Blocks

Theming in Action: Dressing Up Garland

Uninstalling Themes


Working with Theme Engines

What is PHPTemplate?

How does it Work?

Getting Started with PHPTemplate

Alternative Theme Engines

Installing Additional Theme engines


Style Sheets and Themeable Functions

A Guide to Drupal Style Sheets

Identifying Themeable Functions

A Guide to Themeable Functions


Intercepts and Overrides

Overriding the Default CSS

Overriding Functions

Intercepting Template Files


Modifying an Existing Theme

Setting Up the Workspace

Planning the Modifications

Cloning a Theme

First Look at Zen/Tao

Turning Zen into Tao


Building a New Theme

Planning the Build

Build a New PHPTemplate Theme

Extending Your PHPTemplate Theme

Build a New Pure PHP Theme


Dealing with Forms

How Forms Work in Drupal

Modifying and Overriding Form Functions

Common Form Issues

The Default Forms


Appendix A