Blog Posts

Drupal Tips, Tricks and Gotchas

(16 Oct 2012)
The more Drupal web projects I do, the more I keep having to solve similar issues that arise during development or reusing similar code snippets. Typically you can use Features or write a small module for a lot of things but sometimes, you just need that one code snippet or quick fix.

Customizing the Title on Account Pages in Drupal 7 Using a Theme Preprocess Function

(25 Jul 2012)
The Drupal 7 Account pages (user, user/register, user/password), all have the same Title, i.e. "User Account". I just ran up against this issue and my client wanted different / custom titles on these pages.

JQuery Theming Tips for Drupal 7

(18 Jul 2012)
I often see posts on the drupal.org forums and elsewhere in regard to implementing jQuery scripts and code into Drupal. It seems common that users try to attach JQuery right within page.tpl.php or html.tpl.php. In other words, it's hard-coding a script into a page and it's not ideal. Some try to render it using the PHP filter within a block or node.

Theming a Views Post Date With Drupal 7 ("Date in Parts")

(02 Jul 2012)
In my last blog post I showed how to theme a node post date. I'll take it one step further this time and show how to do the same thing with a View. This assumes you are using the Views Module, and a use case would be if you want to display a feed of items with titles and teasers such as blog posts or news.

Theming a Node Post Date With Drupal 7

(14 Mar 2012)
In this article I will show you how to theme a post date in Drupal 7. The goal is to take a boring date printed inline and theme it so it stands out as a design element.