Book Image

Drupal 6 Themes

By : Ric Shreves
Book Image

Drupal 6 Themes

By: Ric Shreves

Overview of this book

<p>Drupal is an award winning open source Content Management System (CMS). Based on PHP/MySQL, its power and flexibility combined with its exceptional design mean it is one of the most popular choices for creating a CMS website.<br /><br />Drupal employs a specialized templating system and supports themes, which allow you to change the look and feel of the system's front and back-end interfaces. <br /><br />Drupal 6 Themes is an ideal introduction to theming with Drupal 6. If you want to create a striking new look for your Drupal 6 website, this book is for you. This book is a revised, updated and expanded edition of Drupal 5 Themes, written specifically for Drupal 6. The book will show you techniques and tools to help you improve the look and feel of any Drupal 6-powered website<br /><br />Starting from the basics of theme setup and configuration, you will learn about the Drupal theming architecture and the PHPTemplate engine, and then move on to modifying existing themes and building new themes from scratch. You will find out about tools to make your theme development easier, and also find invaluable information about under-documented elements of the theming system.</p>
Table of Contents (16 chapters)
Drupal 6 Themes
Credits
About the Author
About the Reviewers
Preface

Overriding the Default CSS


Drupal contains a large number of stylesheets—more than forty at the last count! If you are employing third-party themes or modules, you are also likely to encounter additional stylesheets that are particular to that specific extension.

While there are certainly a lot of stylesheets to juggle, with good planning and use of overrides you can avoid having to track down and modify individual stylesheets. Indeed, as you will be placing your new styles in the theme directory, you won't need to work much with the multitude of the system's default stylesheets.

Note

Remember, you always want to avoid modifying the default files, and that includes both the CSS files in the core and those in any additional installed modules.

Drupal deals gracefully with the complexity of its multilayered approach to CSS. The system includes a CSS compression option (see, Administer | Site configuration | Performance) that will automatically compile the various stylesheets into one coherent...