Book Image

Drupal 5 Themes

Book Image

Drupal 5 Themes

Overview of this book

Drupal is an award winning open source Content Management System. Based on PHP/MySQL, its power and flexibility combined with its exceptional design mean it is already on the way to becoming the de facto standard for CMS Websites. Drupal?¢‚Ǩ‚Ñ¢s modular design and structured source code make it both highly flexible and easily extended and modified. Drupal is extremely scalable, making it ideal for both a simple personal website as well as an industrial strength commercial or institutional web presence.Drupal is a model open source project in that it has a large, friendly community of people who contribute to the project in various ways. Drupal is not only free and easy to use, but this community provides on going mutual support.
Table of Contents (14 chapters)
Drupal 5 Themes
Credits
About the Author
About the Reviewer
Preface
Appendix A

Chapter 7. Building a New Theme

This chapter takes us into the world of building Drupal themes from scratch. While many people may begin their theme project by copying and modifying an existing theme, in this chapter, we cater to the purists who want to do it all themselves.

Inside we'll cover the basics of creating a new theme employing the PHPTemplate engine, and step through the various tasks required to produce a fully functional theme. In the last half of the chapter, we cover some of the more advanced techniques, including working with theme variables, employing multiple templates, and dynamic theming.

We close this chapter with a brief look at creating a pure PHP template, that is, theming Drupal without the use of a theme engine.

To follow fully the examples in this chapter, you will need your favorite web editor (Dreamweaver or another similar program) and, preferably, access to a development server on which to preview your work. In the section dealing with pure PHP themes, we will...