User login

Public

Creating a Subtheme in Drupal 7

Bear with us, and Drupal 7. There are some non-intuitive steps in the subtheming, but the power, simplicity of modifying, and relative ease of upgrading is worth it.

check for stale system table entries in one line

for file in mysql dbname -e "SELECT filename FROM system" | sed "1d"; do [ ! -f $file ] && echo $file; done

This lists all the files from the system table that do not exist in the actual file system anymore.

In our experience, this more often mean modules with bad uninstall practices, rather than modules deleted without uninstalling.

See also Enabled Modules

Installing Drush on Dreamhost

Dreamhost didn't allow creating a symlink from /usr/local/bin to drush

echo $PATH

did not provide any parts of the path that it looked like sudo-less users would have access to.

Fortunately, the below instructions worked well:

http://civicactions.com/blog/2009/nov/04/installing_drush_dreamhost

Imagemaps in Drupal

Background

An imagemap is a single image that by some ancient HTML 1.0 specification can have different parts of the image assigned to different links. The parts are defined by coordinates that no human should have to try to generate manually.

Review of Revision Moderation Modules

http://drupal.org/project/content_moderation – complex, most sites do not need its advanced permissions, well maintained, does NOT allow handling of not-yet-published content in the same workflow. Even worse, you cannot use Drupal core capabilities to leave unpublished, review, and then publish, because it takes over these settings per content type.

Syndicate content