-
Book Overview & Buying
-
Table Of Contents
Learning Drupal 6 Module Development
In this chapter, we will look at the Drupal theme system. Strictly speaking, the theme system is not a module. However, modules interact with the theme system, which is made up of tools, templates, and libraries for configuring the look and feel of just about all aspects of Drupal.
By the end of this chapter, you should be able to create a theme based on the PHPTemplate engine. In later chapters, we will draw upon topics covered in this chapter to make our modules more theme-aware.
In this chapter, we will cover the following:
Understanding the basic architecture of the theme system
Using theme inheritance to create derivative themes
Customizing the site's appearance with CSS (Cascading Style Sheets)
Creating custom PHPTemplate files
Overriding theme hooks to create custom theming
The theme system was briefly introduced in the first chapter. In this chapter, we will start out with a more detailed overview of the theme system's architecture...
Change the font size
Change margin width
Change background colour