PacktLib: Drupal 5 Themes

Drupal 5 Themes

Credits

About the Author

About the Reviewer

Preface

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

Summary

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

Summary

Working with Theme Engines

What is PHPTemplate?

How does it Work?

Getting Started with PHPTemplate

Alternative Theme Engines

Installing Additional Theme engines

Summary

Style Sheets and Themeable Functions

A Guide to Drupal Style Sheets

Identifying Themeable Functions

A Guide to Themeable Functions

Summary

Intercepts and Overrides

Overriding the Default CSS

Overriding Functions

Intercepting Template Files

Summary

Modifying an Existing Theme

Setting Up the Workspace

Planning the Modifications

Cloning a Theme

First Look at Zen/Tao

Turning Zen into Tao

Summary

Building a New Theme

Planning the Build

Build a New PHPTemplate Theme

Extending Your PHPTemplate Theme

Build a New Pure PHP Theme

Summary

Dealing with Forms

How Forms Work in Drupal

Modifying and Overriding Form Functions

Common Form Issues

The Default Forms

Summary

Appendix A