technical
Copying a node to a new type
Submitted by John Locke on Thu, 10/21/2010 - 08:55Drupal provides powerful tools that makes it easy to do all sorts of changes to your web site, but one change is difficult: changing the content type of a node after you've created it.
In general, once you create an item of a certain type, you cannot change that type without breaking it. But for one project, we needed to do exactly that.
Using a File Field with imported files in Drupal: Drush to the rescue!
Submitted by John Locke on Tue, 02/23/2010 - 13:25We regularly import content from old web sites and systems. One recent client had thousands of documents that we needed to copy from the old site, so we wrote a scraping system to import the ones that fit a certain template into Drupal, and just copy the existing documents into sites/default/files.
Using the Filefield_sources module, you can associate an existing file with a filefield, using IMCE or other files uploaded through the file system. However, we hit a problem: if you try to browse to an existing file, Filefield returns an error when you try to refer to it:
Nokia N900 First Impressions
Submitted by John Locke on Wed, 12/09/2009 - 01:08Another reason to love git
Submitted by John Locke on Wed, 07/08/2009 - 14:59So once more, development on an internal project hit a stumbling block. The latest release of Dojo, 1.3.1, has some bug fixes I'd like to use, and in general I like to keep my main project working with the newest dojo releases. But 1.3.1 introduced a new security constraint that basically escaped all the html that I was showing in a grid control. Suddenly, instead of rich text, I get HTML markup!!!
















