Custom template for block

I’m using Node Blocks to create blocks for a bunch of different content types and I thought I needed to theme the block template on a per content type basis. Turns out I don’t, but it took me a long time to figure out so I wanted to record it for posterity. You can actually [...]

Extending the Context Module

I needed a slight extension of the Context module. Treehouse Agency wrote up a great explanation of how they extended context_condition to create two new conditions. I’m doing pretty much the same thing, but my condition is slightly different so I thought it might benefit somewhat to see another slant on this. My site has [...]

Add Individual Event to Calendar

A Drupal site I’m working on requires links for each event that would add the event to the user’s calendar. I’d like to provide this functionality for iCal, Outlook and Google. Drupals Calendar module offers something similar out of the box–there’s a feed which can deliver a an ics file on a per-day basis. I [...]

Configuring Drupal Multisites as Git Submodules

After thinking about the set up in my previous post, I decided that I wanted a good way to push changes from the dev to the production site. So, I found Simon Hamner’s post on using submodules for this and made some modifications. I also got the whole setup working with 3 sites, dev.my-project.local, my-project.local [...]

Setting up Drupal multisites under Passenger, with Git

Here’s my steps for setting up a Drupal production and development site, with Drupal core and modules under separate Git control and running the whole thing under Passenger. I got most of this framework from Version Control Blog, but instead of using separate repositories for Drupal core and modules, I use branches. In addition, I [...]