Skip to main content

Drupal Planet

Field Type Suggestions in Drupal 7

Today I finally got around to testing out the new field suggestions in Drupal 7. If you’re not familiar with the standard suggestions in short you can either use field templates or override theme_field using a naming convention not unlike we do with preprocess functions. What struck me as kind of odd was the lack suggestions for field types—maybe there’s a very good reason for this such as performance, I don’t know, but I thought it might be interesting to see if I could use them, if I wanted to.

Export Adaptivethemes Advanced Theme Settings

In the latest bleeding edge DEV version of Adaptivetheme we’ve introduced a new feature—the ability to export your theme settings. This is useful if you need to move your Drupal theme and you can’t just export and move the database as well.

Add first and last classes to secondary local tasks

We had a project recently where we needed to add first and last classes to Drupals secondary local tasks. I was in a bit of a hurry so instead of trying to figure this out myself I Googled it and pretty quickly found this post on Drupal.org which seemed to fit the bill. Problem is the post doesn’t actually tell you how or where to use the snippet, which isn’t much good for those of you struggling with Drupal in the first place. Never fear, I’ll show you how to get those handy first/last classes into Drupals secondary local tasks.

Page template suggestions for taxonomy vocabs

Drupal’s template suggestions are plentiful and pretty powerful stuff, however, given all the options there are some noteable oversights. In particular the ability to use page-taxonomy suggestions per vocabulary, something like page-vocab-1.tpl.php to theme all taxonomy term pages in vocabulary 1 (where 1 is the VID or vocabulary id).

To achieve this we turn to our trusty preprocess_page function which by now every Drupal themer worth his or her salt knows all about.

Add Superfish Drop Menus to Any Theme, Easily

How to add a Superfish drop menu to Genesis or Adaptivetheme is one of the most common questions I get. Believe when I say I get emails from well intentioned Drupal users on a weekly basis asking me this. So now, please stop emailing me, I relent, heres how its done.

Why I killed Node, may it RIP

Myself, like many others, have always had an acrimonious relationship with the word “node”. It didn’t exactly get off to a good start when node presented me with a rude “wtf” moment when we first met. Things only went down hill after that, node remaining aloof and abstract, without ever just coming out and telling me what it actually was.

Adaptivethemes to roll out Ubercart and OpenPublish Starter themes

Drupal 6 has seen some truly fantastic installation profiles emerge that allow end users to have a site-in-a-box installation in minutes. UberDrupal gets you up to speed with Uberbcart and OpenPublish is an amazing profile for setting up a magazine or news site.

Each of these profiles has very specific theming requirements. Ubercart has the product and cart pages, while OpenPublish has extended user profiles and bio information for nodes and many additional views and other features.

Adaptivetheme Admin User Links Feature Intro

Quick intro video showing the new Admin User Link menu that appear in the admin section pages by default. There is a new theme setting so you can toggle the display on and off and by default it won’t appear if the Admin Menu module is installed.

Agile and Scrum Videos

This is likely to become a pretty big collection of videos about Scrum and other other Agile based managements processes.

Semantic Views Module for Drupal 6 - Video Tutorial

The Semantic Views module for Drupal 6 allows you to easily insert HTML markup for your Views rows and fields.

This is a new module by bangpound and I think this is really going to change how we think about theming Views because for the first time it puts clean semantic Views output in the hands of site builders and other end users, without having to get their hands dirty in the templates.