Drupal: One attributes function to rule them all
So we figured out a neat Drupal trick at work today – it’s a way to add some very useful attributes to the tag in your Drupal 6 themes. I wanted to have the tag in our theme templates to have a set of...
View ArticleDrupal & Codekit – Try Link CSS
As has been pointed out in other places, Drupal and Codekit don’t play well out of the box. Codekit, specifically, can’t inject SASS changes into a Drupal site without refreshing the page. “Live...
View ArticleIn praise of Drupal 8’s new file structure
There is a lot of excitement in the Drupal world right now around Drupal 8 – and for good reason. There are some huge advances being made on the project – Views in Core! A new template engine! Symfony!...
View ArticleHow to use a more recent version of jQuery in Drupal (without jQuery Update)
There are many things that I love about Drupal, but they way it incorporates jQuery is not one of them. Drupal 7 core comes with, and is tied to, a particular version of jQuery – 1.4.4. That came out...
View ArticleChanging the element classes in Drupal 7
Drupal has many odd things hard-wired into it. The one I want to get into today is how, in Drupal 7, the <body> element has classes attached to it that sometimes just don’t make sense. Let’s say...
View ArticleHow to apply classes to elements with CKEditor 4, in Drupal 7
I’m just jotting down a couple things that I figured out recently with regards to making modifications to the CKEditor WYSWIG editor in a Drupal 7 installation. On a recent project, we had a client who...
View ArticleCounting Blocks in Drupal
We had a situation where we had a region of blocks, but the number of those blocks could fluctuate. This was based on how much content the client wanted to feature in the region. This posed a problem...
View Article