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

Build a New PHPTemplate Theme


To create a new PHPTemplate-powered theme, we need to create the following files:

  • page.tpl.php

  • style.css

We'll also need a directory to hold them, so create a new directory and name it Bluewater; this will be the home directory—and the name—of our new theme.

Testing during theme development is easiest if you have access to a development server. Unlike straight HTML, it is difficult to preview the PHP files. If you have access to a development server, go ahead and place the Bluewater directory into the sites/all/themes directory. Next, copy into that directory a sample logo file we can work with and name it logo.png—the default Drupal logo used in the themes included in the distro will work just fine.

Note

You can grab a copy from any of the default themes in the distro. Typically, the logo can be found inside the theme directory and is named logo.png, for example, themes/garland/logo.png.

Place the directory and basic files for our new theme, Bluewater, inside...