castlin's blog

supportunitedway.org case study

This is a writeup of how and why United Way of Massachusetts Bay and Merrimack valley chose Drupal for the redesign of supportunitedway.org. I'll talk about our history with Drupal, how we structured the new site, which modules we used, and how we migrated data from our old site.

stupid color trick

I had to generate ~unique colors for various nodes recently. So I used:

<?php
'#' . substr(md5($node->title), 0, 6)
?>

Some of the colors are hideous, but they're relatively distinct within a collection of nodes.

Development & Production Sites with Database Prefixes

I'm playing around on a couple of test sites with an idea I had during a BoF at Drupalcon. Running two sites off the same database and prefixing certain tables should allow for a simple dev/prod environment.

The idea is to isolate the configurations for the two different sites in two differently prefixed sets of tables, and allow all the content, users, taxonomy, etc. to mingle. To test this I've set up two subdomains, dev1.castlin.net and dev2.castlin.net. Here is the entry in settings.php for dev2 (dev1 is strikingly similar):

A little polish

I spent a bit of time today updating my portfolio, and finally got my Drupal Association membership established.

Syndicate content