Free Sample
+ Collection

Drupal 5 Themes

Progressing
Ric Shreves

Create a new theme for your Drupal website with a clean layout and powerful CSS styling
$14.40
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$21.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847191823
Paperback260 pages

About This Book

 

  • Learn to create new Drupal 5 Themes
  • No experience of Drupal 5 theming required
  • Set up and configure themes
  • Understand Drupal 5's themeable functions

 

Who This Book Is For

Table of Contents

Chapter 1: The Elements of a Drupal Theme
What is a Theme?
What is a Templating Engine?
The Range and Flexibility of Drupal Themes
What You See on the Screen
The Big Picture: How Drupal Displays a Page
The Importance of Themes in Drupal
The Contents of the Drupal Distro
The Theme Files
Summary
Chapter 2: Theme Set Up and Configuration
Finding Additional Themes
Installing an Additional Theme
Configuring a Theme
Managing Modules and Blocks
Theming in Action: Dressing Up Garland
Uninstalling Themes
Summary
Chapter 3: Working with Theme Engines
What is PHPTemplate?
How does it Work?
Getting Started with PHPTemplate
Alternative Theme Engines
Installing Additional Theme engines
Summary
Chapter 4: Style Sheets and Themeable Functions
A Guide to Drupal Style Sheets
Identifying Themeable Functions
A Guide to Themeable Functions
Summary
Chapter 5: Intercepts and Overrides
Overriding the Default CSS
Overriding Functions
Intercepting Template Files
Summary
Chapter 6: Modifying an Existing Theme
Setting Up the Workspace
Planning the Modifications
Cloning a Theme
First Look at Zen/Tao
Turning Zen into Tao
Summary
Chapter 7: Building a New Theme
Planning the Build
Build a New PHPTemplate Theme
Extending Your PHPTemplate Theme
Build a New Pure PHP Theme
Summary
Chapter 8: Dealing with Forms
How Forms Work in Drupal
Modifying and Overriding Form Functions
Common Form Issues
The Default Forms
Summary

What You Will Learn

This book is the ideal introduction to theming with Drupal 5. If you want to create a striking new look for your Drupal website, this book is for you. 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. Included is a complete guide to the various style sheets and themeable functions in Drupal 5, making this book a valuable resource even to experienced theme developers. It covers:

  • Creating custom templates
  • Basics of theming in pure PHP
  • Modifying an existing PHPTemplate theme— a step-by-step guide
  • Creating a new PHPTemplate theme—a step-by-step guide
  • Working with forms

The main requirements to make use of this book are knowledge of HTML, CSS, and a touch of creativity! Although this book aims to make Drupal theming accessible to designers, theming in Drupal 5 involves writing some PHP code, and a basic knowledge of PHP will be helpful.

In Detail

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.

Authors

Read More