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

What is PHPTemplate?


PHPTemplate is one of a family of applications known as templating engines (referred to frequently in Drupal—and in this text—as "theme engines"). These applications serve a middleware function and determine the coding syntax, which will be used to create the theme. As the name implies, PHPTemplate supports the popular PHP programming language for theme creation.

PHPTemplate was built by developer Adrian Rossouw, and was created specifically for use with Drupal. PHPTemplate is the most widely supported theme engine for Drupal and is compatible with Drupal 4.6 and up. PHPTemplate is included in the default distro of the Drupal 5 series.

Your default PHPTemplate engine files are located on your server in the directory themes/engines/phptemplate; additional theme files will appear in the theme directory of each individual PHPTemplate-enabled theme.

Note

PHPTemplate files follow a naming convention: xyz.tpl.php.

For example: block.tpl.php, comment.tpl.php, node.tpl.php, page...