Free Sample
+ Collection

Drupal 6 Themes

Progressing
Ric Shreves

Create new themes for your Drupal 6 site with clean layout and powerful CSS styling
$15.60
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$16.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 139781847195661
Paperback312 pages

About This Book

  • Learn to create new Drupal 6 themes
  • No experience of Drupal theming required
  • Techniques and tools for creating and modifying themes
  • A complete guide to the system's themable elements

Who This Book Is For

The main requirements to make use of this book are knowledge of HTML, CSS, and a touch of creativity - you don't need to know anything about theming in Drupal, although you should be familiar with the basic operation of the Drupal system.

Although this book aims to make Drupal theming accessible to designers, theming in Drupal 6 involves writing some PHP code, and a basic knowledge of PHP will be helpful.

Regardless of your technical skills, this book will teach you to design themes for your Drupal websites in the easiest way.

Table of Contents

Chapter 1: The Elements of a Drupal Theme
The Importance of Themes in Drupal
What Is a Theme?
What Is a Theme Engine?
The Range and Flexibility of Drupal Themes
What You See on the Screen
The Big Picture: How Drupal Displays a Page
The Default Themes of the Drupal Distro
The Theme Files
Summary
Chapter 2: Theme Setup 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: Identifying Templates, Stylesheets, and Themable Functions
Putting Together the Pieces—Templates, Stylesheets, and Functions
A Guide to Theming Elements
Summary
Chapter 5: Intercepts and Overrides
Overriding the Default CSS
Overriding Templates and Themable Functions
Summary
Chapter 6: Modifying an Existing Theme
Setting Up the Workspace
Planning the Modifications
Creating a New Subtheme
Making the Transition from Zen to Tao
Summary
Chapter 7: Building a New Theme
Planning the Build
Creating a New PHPTemplate Theme
Build a New Pure PHP Theme
Summary
Chapter 8: Dynamic Theming
Using Multiple Templates
Dynamically Theming Page Elements
Creating Dynamic CSS Styling
Working with Template Variables
Summary
Chapter 9: Dealing with Forms
How Forms Work in Drupal
How to Approach Modifying Forms
Solutions to Common Form Issues
The Default Forms
Summary

What You Will Learn

  • Learn about the Drupal 6 Theming Architecture
  • Find and install new themes
  • Get the most from Drupal's theme configuration system
  • Create a new theme from scratch
  • Master PHPTemplate
  • Modify the default templates and styles
  • Override the default templates with your own
  • Create dynamic styling which responds to the content or the user
  • Discover tools that make theming easier and more efficient


Chapter 1: The Elements of a Drupal Theme
– In this chapter we examine how the theme system in Drupal works and examine the different approaches to working with Drupal themes.

Chapter 2: Theme set Up & Configuration – Here we look at all the various theming options that are available in the default Drupal system. By way of example, we take a default theme and customize it using only the options provided by the system.

Chapter 3: Working With Theme Engines – You will learn how the PHPTemplate theme engine works and how you can use this powerful tool,

Chapter 4: Identifying Templates, Style Sheets and Themable Functions – This chapter identifies all the themable elements in the Drupal system and tells you where to find the elements together with an explanation of their functions.

Chapter 5: Intercepts & Overrides – You will learn how to employ intercepts and overrides to modify the default styling in your Drupal theme.

Chapter 6: Modifying an Existing Theme – Here we look at how to implement extensive modifications to a default Drupal theme. This is a hands-on example of the techniques covered in previous chapters.

Chapter 7: Building a New Theme – In this chapter we examine how you can build from scratch a new theme employing the PHPTemplate theme engine.

Chapter 8: Dynamic Theming – You will learn how the Drupal system enables you to vary the styling between sections, pages or users.

Chapter 9: Dealing with Forms – This chapter covers the styling of forms in Drupal, one of the more complex areas in the system.

Appendix A: A Guide to Drupal Style Sheets – An inventory of the contents of all the style sheets in the Drupal system.

Appendix B: The Themers' Toolkit – A listing of tools and extensions that make your work with themes easier and more efficient.

In Detail

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.

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.

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

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.

Authors

Read More