Controlling different versions of files is an efficient process with Git, and this book makes it a snap to learn too! A practical tutorial, it hard-wires the lessons through hands-on exercises throughout the course.
Sign up here to get these deals straight to your inbox
Create a new theme for your Drupal website with a clean layout and powerful CSS styling
Print + eBook
Want this title & more?
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.
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
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
Chapter 3: Working with Theme Engines
What is PHPTemplate?
How does it Work?
Getting Started with PHPTemplate
Alternative Theme Engines
Installing Additional Theme engines
Chapter 4: Style Sheets and Themeable Functions
A Guide to Drupal Style Sheets
Identifying Themeable Functions
A Guide to Themeable Functions
Chapter 5: Intercepts and Overrides
Overriding the Default CSS
Intercepting Template Files
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
Chapter 7: Building a New Theme
Planning the Build
Build a New PHPTemplate Theme
Extending Your PHPTemplate Theme
Build a New Pure PHP Theme
Chapter 8: Dealing with Forms
How Forms Work in Drupal
Modifying and Overriding Form Functions
Common Form Issues
The Default Forms
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.
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.
Ric Shreves is a web applications consultant and tech author. He’s been building websites since the mid-90s and writing about tech for almost as long. Ric specializes in open source content management systems and has written texts on each of the big three: WordPress, Joomla! and Drupal.
Ric is the founding partner of water&stone, a digital agency that focuses on new media and online marketing. He works with clients on digital marketing strategy and supervises the SEO implementation team. Ric lives in Bali and divides his time between the island and Singapore.
We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.
As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.
Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.
Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.
A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.
Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.
Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.
Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.
Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.