Review: Drupal 6 Themes

Drupal 6 Themes

There’s an ever-growing number of decent books appearing about Drupal, covering in detail various aspects of this complex CMS and catering to different experience levels and levels of coding ability. ‘Drupal 6 Themes’ by Ric Shreves fills a niche for detailed coverage of Drupal’s theming functionality for users with decent HTML and CSS skills, and maybe a little bit of PHP. It’s a book that I think designers and web managers wanting to add Drupal to their skill-set can get a lot out of reading and it’ll certainly help a lot if you’re starting out on the labour of wrangling with the design of a site based on a theme someone else created.

The book’s well written with a sensible structure, moving from general discussions of how theming in Drupal works to specific demonstrations of how to modify existing themes and build new ones from scratch. There’s a very clear explanation of the best ways to employ intercepts and overrides to achieve style changes and useful coverage of theming Drupal’s forms.

One of the most difficult things about changing the look of Drupal sites is the sheer number of CSS and template files you usually have to wade through. This book includes a short introduction to tools which can help with this – like Devel’s Theme Developer module, and the Firebug and Web Developer extensions for Firefox. There’s also detailed listings of Drupal’s theming elements and core CSS files.

Overall, this is a good solid read which can really enhance a new or intermediate Drupal user’s appreciation of how to get the most of theming. However, theming isn’t the only thing you need to master to get a Drupal site looking exactly the way you want. For an all-round understanding of  Drupal’s front-end, I’d also recommend you look at O’Reilly’s recent Using Drupal as well, which has demonstrations of using CCK and Views – as well as a good chapter on theming (although it doesn’t go into as much detail as this book). There’s also a forthcoming book on Front End Drupal due out next month which I definitely want to pick up.

Drupal 6 Themes: Create New Themes for Your Drupal 6 Site with Clean Layout and Powerful CSS Styling by Ric Shreves is published by Packt Publishing.

Related posts

I looked at a number of other starter resources for getting to grips with Drupal this January in a post on Learning Drupal.

Review: Everything you know about CSS is wrong!

It must be said to start with that the title of this book is a bit overstated. Rather than ‘Everything you know about CSS is wrong!’, it would be more appropriately called ‘Some of the things you know about CSS layout techniques will be out of date in the near future (arguably)’. However I can see that this wouldn’t sell as many copies. It would also fail to capture the polemical flavour of the authors’ central argument: that web designers should seize the opportunity offered by the imminent release of Internet Explorer 8 to embrace CSS display tables for layout and abandon rubbishy old floats and faux columns for good.

In making a case for this,  the authors put across some nice points about how CSS layout techniques we have come to take for granted make simple layout tasks a heck of a lot more complicated than they really should be. This is a valid topic which a lot of books about CSS tend to skirt around. The book also contains  a short introduction to the CSS table display properties, a simple set of examples, discussion of the pros and cons of using them (mostly the pros though) and a chapter on considering older browsers. To conclude there is a look forward to the layout options that will be available (eventually) in CSS3.

The major criticism the book tends to provoke (one the authors foresee, but don’t entirely manage to assuage) is that it is  too soon to start using layout techniques which are unsupported by IE6 and, especially, by IE7. If we haven’t got rid of IE6 yet, which has been around since 2001, then how long will it take before we can really ignore IE7? The authors’ suggestion of providing simplified versions of designs for the most popular browser is unlikely to go down well with a lot of clients.

There also seem to be potential accessibility problems with CSS display tables unless the designer is careful. The authors downplay the importance of source order for accessibility, quoting research stating that “the source order of a web page is likely to be of little relevance to the majority of screen reader users”. I guess I might accept that for simple layout tables like the ones demonstrated in this book. However the major accessibility problems in traditional HTML table layouts were caused by endlessly nested tables messing up source order utterly and making pages impenetrable to  a screen reader user. If this kind of situation isn’t going to be repeated, then CSS display tables presumably need to be nested in moderation and care needs to be taken that content spread across cells reads in an acceptable order when linearised.

On the plus side,  it is always nice to know about another way of doing things and CSS display tables are a solid addition to anyone’s skill set for when you eventually find yourself in the lucky position of not having to bother about IE6 or 7.

In general, I found the book  a refreshing read. It provides a coherent argument,  is well written in a concise way and provokes you to question fundamental aspects of how you work. Not many web design or IT books manage this and it would be nice if more of them did.

Everything You Know About CSS is Wrong! by Rachel Andrew and Kevin Yank is published by Sitepoint.