Whatever I might have $_REQUESTed, I didn’t ask for that October 13th, 2007

Imagine you have a Drupal site: I have several, so that’s easy for me. Say you’ve got an index aggregating lots of your content in a listing, and it spans lots of pages. It’s probably a view created with the views module, slicing through your content in a special way.
Drupal has a core paging module [...]

A complex CCK module in Drupal September 20th, 2007

CCK is Drupal’s way of making rich content. It means that nodes of any content type can have any kind of data attached to them, so you can have e.g. a directory of superstore outlets, where the outlet records have their longitude and latitude (editable by a Google Map widget) whereas the contact records (e.g. [...]

Want somewhere to stay in Brittany? September 13th, 2007

My parents-in-law own a cottage in a place in France called Pont Camarel. They asked me to build them a site. I did. That’s it.
(It’s maintained by the creaky old php-update system, which is awful; development of the site wasn’t helped by the system’s maintainer taking all the old forums down while he rebuilt it [...]

Drupal @ Brighton Barcamp September 10th, 2007

The slides for my Barcamp talk are available, for those who missed it (most of you, you swine). Of interest if you want to see a Drupal site that doesn’t look like a Drupal site, and how you might go about doing that.

Drupal logins not working August 29th, 2007

There’s a long (and old) thread about Drupal logins not working. A lot of the problems are to do with weird PHP version changes; some of them are caused by cookie persistence; but the one we’ve had was the result of losing the login box on the front page.
“How can you log in without a [...]

Some Drupal gotchas August 29th, 2007

These have arisen in my recent workshops, and during programming….

The Page content type isn’t the same as the page template; nor is it the same as a page on the site, which is actually called a node.
The file in your templates directory, called template.php: that’s the only .php file that isn’t actually a template (templates [...]

Laptop and Linux: the fixes for a Dell Precision M4300 August 28th, 2007

Getting a Dell Precision M4300 to work with a weird Feisty/Gutsy hybrid Ubuntu (edit: upgrading to Hardy Heron eventually fixed everything).

Unobtrusive suggested input text with jQuery August 22nd, 2007

You can do this with any framework, of course, but I’ve just implemented a subtle piece of jQuery-supported code in my blog search to make the suggested text disappear when you focus into it, and re-fill an empty field with the suggested text when you move focus away from the box by clicking elsewhere. Give [...]

Distributed Drupal development, determined by dedicated Drupaler August 20th, 2007

A recent thread on the Drupal development list (started by me, I confess) led to Larry Garfield publishing his development environment online. It’s interesting to see what problems he’s had to solve (and what problems he hasn’t needed to solve).
Our development is explained on those list postings: I’ll put a diagram and more coherent explanation [...]

My first Drupal.org documentation August 16th, 2007

Drupal has a built-in form abstraction system called Form API (or FAPI), which like the Atom protocol consists of two complementary halves. The first is an abstraction of forms to structured data, and is dealt with very well by both online documentation and the excellent Pro Drupal Development. The second is a workflow for turning [...]