Computerminds Blog

Page manager redirect

Quite often you need to redirect a particular path on a Drupal site, there are a number of ways to do this, but most involve writing PHP code. Also, it's not hugely easy to do things like redirect node/%node but only when %node is a 'image' node, posted on a Tuesday. The awesome Page manager module, and a little utility module we wrote changes that.

Page manager redirect Drupal module exposes a 'task handler' to Page manager. This means that we can do a 'task' when page manager matches a path, and other conditions pass; The task that Page manager redirect exposes is to redirect to another page.

This allows us to easily set up things like redirecting a user's profile node to the user whose profile it is, or redirect individual image nodes in a gallery to the gallery they belong to.

Views content cache

Views is awesome. You get a ton of flexibility and power, but that comes at a price: Some of the queries that views produces are less than optimal, and the rendering of results can take a long time. Views 2.6 introduced a nice solution to some of the issues, with the introduction of caching plugins.

Views itself comes with a single cache plugin (okay, okay two if you're really counting) that is time-based. So you can say: "I don't care if I show content that's 6 hours old" and it'll handle it fine. I've been thinking for a while that there should really be a better way, if you've got a view listing blog posts, you only really need to flush the cache on that view when a new blog post is added, or and existing one is updated or deleted. After a client really needed this, I looked into it and found some code lying around in the views issue queue written by huesforalice. I cleaned it up some and created a module, presenting:

Views content cache.

Drupal 6 is released - hoooooray!!

Well, it's finally happened - the brand spanking new Drupal 6 has been released into the wild. We have been playing a lot with Drupal 6 and getting ourselves quite excited (finally drupal_execute has decent return values, and the menu system feels a bit less 'brutal'). However, while we would love to start building client sites on it there is one major omission - the views module.

Suffice to say there have been many discussions about the core-worthyness of the views module, so I am not about to start another one here! Instead I'll just say a HUGE thank you to everyone involved with what we think will be a massively important release for the Drupal

PS - Can it really be a year already since Drupal 5 was released! It seems like only yesterday we were stumbling over those fancy new admin/build and admin/content menu entries LOL

Drupal association

The Drupal association have just rolled out a new logo and are having a bit of a membership drive ... so if you haven't joined yet do now!  http://drupal.org/node/204175

Special offer - make-my-logo-bigger cream, free with every website we develop

We don't often post random stuff on here, but this has been amusing us in the office, we thought you might like it too ...

Another drupal release (5.5) - deja vu!

File this one under "slightly annoying but can't be helped", after a fun day of upgrading sites to 5.4 we find that 5.5 has been released!  Fixing a fairy hefty bug in the taxonomy term RSS feeds introduced by 5.4 you can't really not upgrade ... at least we know what we will be doing today :)

New drupal releases

Its been a day for Drupal releases.  The most important for our clients is the release of Drupal 5.4, which fixes a possible SQL injection vulnerability (its one of those obscure ones which shouldn't affect too many people hopefully).

Barrow Gurney featured in slashdot article

Well, who would have thought it - the tiny village of Barrow Gurney is busy making tech news!  http://science.slashdot.org/article.pl?sid=07/12/04/2148215

Computerminds work with CompanyX

We are excited to get the chance to work with the guys down at companyX on a number of exciting Drupal projects.   We can't go into too many details yet, but watch this space ...

Drupal 5.3 released

Drupal 5.3 was released early this morning, fixing a number of security issues and a number of other small bugs (all the fun feature stuff is only being added to Drupal 6!).