Text

Some test HTML for Drupal themes

It’s all too common that you hand a Drupal site off to a client, only to realize that the WYSIWYG threw in a common element (such as a blockquote perhaps) that should work look beautiful, but it looks like crap because you never tested it.

As an attempt to solve that, I gathered a crap-ton of markup to be used to test your Drupal theme. It includes both regular HTML elements (pretty much every one you can think of), as well as Drupal-specific stuff (such as tabs and status messages). The purpose of this markup is that you can copy and paste into a node and you have your very own markup tester.

Even though it’s just a single file, I went ahead and put it on GitHub with my other pet projects.

Text

Project Verity

Mark Boulton and Leisa Reichelt just launched Project Verity, which looks to ultimately be a Drupal admin theme aimed at content creators and site editors. It will be “designed in the open and available soon,” although the site says it will be a paid/premium theme.

I asked Mark Boulton about that last part via Twitter:

@markboulton it will be a paid/premium theme?

And his reply:

@mcrittenden Yes it will. This is aimed very clearly at agencies developing sites for people like verity.

That doesn’t make very much sense to me. I’m sort of confused about the notion of designing a theme in the open and then charging for it.

Also, I’m a little confused as to the difference between Verity and Seven, the D7 admin theme they designed. Seems like they would fit the same use case.

That said, I’m pleased to see them taking the initiative I’ll be very interested to see what comes of this and how the community reacts.

Tags: Drupal Theme
Text

Drupal: Add a class to the first non-image paragraph

Say you need to grab the first paragraph of a node’s body that starts out with text. For example, you want to add a drop cap to the first letter of a node’s body, but if the first paragraph only has an image, then you can’t do anything cool like first-child. So here’s what you do.

Throw this into your theme’s template.php:

Replace THEMENAME with your theme’s name (i.e., the name of your theme folder) and you should be good to go. This just adds class=”first” to the first paragraph of your node’s body that does NOT start with an img tag.

Text

Seven: A Backport of D7’s Admin Theme

I just released a D6 version of Drupal 7’s administration theme (named Seven), designed by Mark and Leisa.

Check Seven out.