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

Cloning a Theme


Let's get started by making a copy of the Zen theme. We'll keep the original and work on the copy. I recommend you always employ this approach to cloning themes: by preserving the integrity of the original, you have a reference and you maintain the ability to roll back your changes in the event a serious problem arises.

Cloning a theme is a simple matter. First, make a copy of the original theme and place the copied directories in the sites/all/themes directory. Next, rename the directory with your chosen theme name. In the case of the Zen theme, we also have to re-name the sub-theme, Zen-Fixed, which has its own directory.

Let's name the new primary theme Tao and the secondary theme Tao-fixed. The result of copying and renaming the directory should look like the illustration.

The result of cloning the Zen theme and re-naming the copied directories

After re-naming the theme, it is necessary to re-name any theme-specific functions.

Open the template.php file in our Tao directory...