Product Details
Drupal 6 Themes: Create new themes for your Drupal 6 site with clean layout and powerful CSS styling

Drupal 6 Themes: Create new themes for your Drupal 6 site with clean layout and powerful CSS styling
By Ric Shreves

List Price: $39.99
Price: $31.57 & eligible for FREE Super Saver Shipping on orders over $25. Details

Availability: Usually ships in 24 hours
Ships from and sold by Amazon.com

29 new or used available from $24.80

Average customer review:

Product Description

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.

What you will learn from this book?

  • 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

Approach

This book helps you understand the logic behind the theming system employed in Drupal, and how to make it work for you. You will learn key concepts and work through examples with careful, step-by-step instructions.

Who this book is written 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.


Product Details

  • Amazon Sales Rank: #39510 in Books
  • Published on: 2008-09-30
  • Released on: 2008-09-30
  • Original language: English
  • Number of items: 1
  • Binding: Paperback
  • 312 pages

Editorial Reviews

About the Author
Ric Shreves is a partner in water&stone, a web development company that specializes in open source content management systems. He works primarily as a consultant and business systems analyst is currently on extended assignment with Peace Dividend Trust. He lives in Bali with his wife Nalisa, one dog, two cats, three turtles and a mind-boggling number of fish. First and foremost, I thank my loving wife Nalisa for her support and patience. It would also be remiss of me to fail to acknowledge my friend (and editor at ComputerWorld) Stefan Hammond, who provides more than a modicum of support and encouragement -- together with much-needed reality checks. Ric Shreves is a partner in water&stone water&stone, a web development company that specializes in open source content management systems, including Drupal. Ric has been building websites professionally since 1999 and now works primarily as a web applications consultant. He lives in Bali with his wife Nalisa.


Customer Reviews

Disappointing and Ill-Conceived1
Drupal 6 Themes from Packt Press by Ric Shreves is a remarkably disappointing book.

Many authors have tackled explaining the programming and configuration of Drupal websites, but this is the first book dedicated to teaching users how to make Drupal 6 look and feel like their own.

Out of the box, Drupal is an amazing website creation package; it has features that would take years to "reinvent" if you tried to work from scratch. From a technical, back-end , programmer's point of view it inspires admiration.

When I put my artistic, designer's hat on, though, Drupal can leave me nearly in tears. Though version 6 radically simplified and improved the design process over the previous edition, learning to skin a dynamically generated Drupal site is still an order of magnitude harder than designing a static web page. Though it is possible, for example, to use Dreamweaver in parts of the Drupal design process, ultimately your snippets of code and css stylesheets are going to need to be channeled to many different locations that on the site that are not readily viewable in a WYSIWYG environment.

In other words, to effectively give a Drupal site a makeover you need to know everything you'd need to do to design a regular website, plus a wealth of information about the "how" and "where" Drupal needs you to follow to get your vision integrated into its content management system. From a technical point of view, the way Drupal gives granular control of the design process without the need to hack the core code is an engineering marvel. Harnessing that power, particularly given the state of the online documentation is challenging.

It is for that reason that, even after working with Drupal for over a year, I looked forward to Ric Shreves Drupal 6 Themes. It is also why I am so profoundly disappointed by this ill-conceived book.
When I first picked up the book there were immediate red flags. In the preface, under the heading "Who is this book for?" the short paragraph that follows doesn't answer that question directly. Is this a book for designers? For programmers? For beginners to Drupal? For intermediates? Instead, the section explains that for a designer to theme in Drupal "a basic knowledge of PHP will be helpful". Frankly, most designers I know don't fit into that category and have little interest in wading through Fundamentals of PHP and MySQL, let alone PHP for Dummies. I think most of them coming to this book are looking for an author to step them through the basics of what they need to bring their vision to fruition in Drupal - even if this means spoon feeding them some basic PHP.

More intermediate users are going to want to know about how to completely revamp the look and feel of Drupal: How do you change the look and feel of the Tabs and Menu systems, for example; the interrelationship between themes, views, and CCK fields, for another. How do you integrate the color picker functions into your own themes? What is the best workflow? What advanced tools are available, and how do you use them? You're not going to find this level of advice here.

Advanced users might want to see a dissection and annotation of the more advanced themes and how they work. The forums at Drupal.org are simply filled with requests of this sort from users who tried to modify some of the included themes only to find them as difficult to navigate uncharted as the Sargasso Sea.

By failing to adequately target a typical reader of the book the author languishes without focus, specificity, or purpose. The first three chapters of the book feel more like a regurgitation of on-line documentation, without adding much new information or clarity : In general terms, how does the theme system work? How do you install a download and install a theme? How do you turn on blocks and modules?
Things begin to break down early in Chapter 3, "Working with Theme Engines". The introduction to the PHPTemplate engine is alright as far as it goes (covering ground already well tilled in virtually every other Drupal book) but it does not concisely take the lesson to the next level with explanations and examples that one would expect in a single topic volume.

Actually, despite the plurality suggested in the chapter heading ("Theme Engines"), the author focuses almost exclusively on the PHPTemplate engine, devoting only two and a half pages to alternatives. Since he gives no examples to contrast the engines and speaks only in generalities, why bother to mention them at all beyond a simple statement such as: "the consideration of alternative theme engines is beyond the scope of this book", an approach he uses elsewhere in the book.

By Chapter 4, "Identifying Templates, Stylesheets, and Themable Functions", I could feel the book go through a schizophrenic shudder, as it abruptly shifted from the "beginners guide" to advanced user's "bible". Forty-five pages are devoted to listing theme elements in Drupal, without explanation or example. At best, this material might have been useful as an appendix, but the leap from "how we turn on an theme" to "provides a div for standardizing indentation" is simply too great. Likewise, this chapter seems to be conceived alphabetically- starting with a description of the theming the "Agregator Module" (try asking most designers what the heck that is) rather than the all important Page.tpl.php file that controls nearly every page on the site. Again, it felt as if this material had been lifted from on-line faqs and documentations and inserted here without much amplification or explanation. Certainly, the tone and manner of the chapter bears nearly no relation to the preceding chapters. Much of it is written in phrases, not even sentences.

Things improve somewhat in the next two chapters. Almost without explanation the technospeak of Chapter 4 is dismissed and the author gives some specific examples of how to modify themes. There is a lot of material missing here: the relationship between Ajax and themes is the most glaring omission. It is hard to imagine a book on theming Drupal that doesn't spend time on formatting "tabs" or "menus", but Shreves avoids these topics. Likewise, there isn't an index entry for theming CCK fields, panels, or views (though they are mentioned in the appendix) - and these modules are considered by many to be nearly indispensible elements in Drupal Site building.

Another glaring omission are third party tools that purport to make theming easier for the beginner. I would include some reference to Artiseer 2, here, perhaps including one of the Artiseer themes, how it works, and how it might be modified.

An appendix to the book entitled "A Themer's Toolkit" encapsulated many of the faults of the book as a whole. Knowing about the Devel Module, for instance, is important. But, knowing how to use it is even more important. The three short paragraphs plus one "tip", barely scratch the surface. Similar, even shorter, blurbs do little more than acknowledge that other modules that would be useful to the theme developer exist. Invariably, these "descriptions" are followed by a weblink where you can learn more. For many readers, the reason we bought this book in the first place was the insufficiency of the on-line material.

So, let me save you some time and money. If you're a beginner, take a look at Using Drupal by Angela Byron, et. al. For more advanced info on Drupal 6 Themes, you can get much of the same information as covered here at the drupal handbook.



This book hits the target5
Every book has a target audience - this book's is pretty narrow is scope - people that want to understand how theming drupal 6 works. Ric Shreves hits the target! I am a mid level drupalite - not a ninja programmer or designer but not a beginner either. I found it very helpful.

Theming is the "art" of making your website look exactly how you want it. This book shows you everything you need to know on the technical side of how to make that happen. The book doesn't give design help - there are other resources for that - but if you are a good web designer and want to understand how to make drupal "pretty" this book is the best resource out there. With this book and CSS and graphic design skills you can make it happen.

Certainly all of the information in the book can be found on http://drupal.org or on other related websites, but what I like about a book is that it is focused on just the topic at hand - "drupal 6 theming" and it is in a format designed to "cover all of the bases."

As I was reading it (I have read the whole book) I found things that had stumped me -- things that are not obvious and often left out of discussions on the drupal.org discussion forums(but if you search you can find the answer) -- like to use node-story.tpl.php you have to have node.tpl.php in your theme directory ... I saw this detail noted several times in the book.

Overall I highly recommend this book and another PACKT book Learning Drupal 6 Module Development together they are very good ways to improve your drupal skills.

This is a very useful book5
I have used Drupal to administer sites for years. It is flexible, powerful, and relatively easy to use. The one area of Drupal where I have been weak is theming. Generally, I have used contributed themes, maybe modifying colors, logos, and other simple things.

The one or two times I felt ambitious and tried to read through the documentation in order to learn how to create my own theme from scratch, I either got distracted by life, or found myself getting tired of the search and wishing I had all of the information I needed in one place to learn how to create a theme.

This book has impressed me. It is well-written, using clear language, useful diagrams and figures, and a logical progression of ideas. It starts with the basics, talking about what a theme is and defining its components. Then, it moves into the details of modifying the default themes. Up to this point, I didn't encounter anything new to me, but I was only up to chapter two.

Starting with chapter three, the book reveals and clearly describes each of the files and elements that make up a theme, using both the default PHPTemplate engine as well as other options. Later, the book teaches how to use and master this template engine to create your own custom theme, including how to create custom looks for specific pages, modules, and more.

In between the two, you learn how to download ready-made themes, contributed by the Drupal user and developer community, and modify them for personal use, knowing how and where to look for usage restrictions to avoid problems.

Finally, the book ends with some very useful appendices that show where to find every css file and what it affects, and other useful tooks and kits for developers.

This book has saved me a lot of time, and is well done. If you are responsible for a site powered by Drupal, you may find it useful as well.