Drupal tips, tricks, tutorials

Advanced drupal 6.x hierarchical taxonomy list pages

A good quality taxonomy listing page can act as a really good sitemap. Good sitemap pages are great for internal linking effects that helps visitors browse your site, and coincidentally aids in SEO. Most (?all?) nodes will have taxonomy terms attached to them. Hence it's a pretty good start to aid someone to browse your site. The problem is the core taxonomy module doesn't make good quality listing of taxonomy terms. For instance it ignores the term hierarchy, it doesn't display links to child term pages, etc.

Feedback modules for Drupal

inspiration.jpgLooking at a colleague's website (organicJar.com) and was jealous over the Feedback button on the side of the page of that website. It's an AJAX'y button at the side, themed so it stands out well over any background content, and plops up a nice form letting visitors give feedback. See the image to the right. It's of course important to get feedback from your visitors, to engage visitors, and perhaps if they have a good experience on your site they'll return again in the future.

Review: Flash with Drupal

Review: Drupal 5 Views Recipes

It's curious that Drupal 5 Views Recipes is a brand new book, right?

Fix for when Drupal's cron.php redirects to a page rather than run cron.php

I've been having a headscratcher on a website for awhile and just found what the problem is. PROBLEM: When cron.php is requested, instead of running cron.php it redirects to some page on the site. This means the cron hooks aren't executed because instead some other page gets loaded. Drupal does a lot of maintenance stuff in the cron hooks, so it's bad news if they don't get executed.

Documentation of the normal setup for cron.php: http://drupal.org/cron .. I had done all that, and their troubleshooting section did not cover the problem I had.

Using MAMP for local Drupal development on a Mac

MAMP makes it pretty darn simple to do web development on a Mac. While Mac OS X comes bundled with Apache and PHP, MAMP bundles together the latest versions of both along with MySQL. It "installs a local server environment in a matter of seconds on your Mac OS X computer" and is completely self-contained. You can run MAMP alongside the Apache that's built-in to Mac OS X, you can remove MAMP at any time, etc. It's very convenient and flexible.

Repairing book navigation on a Drupal site

Maybe nobody else will find themselves in the situation that's in my hands right now. During the upgrade of this site from Drupal 5 to 6 the book navigation structure got screwed up. Drupal's book content is a tree structured set of pages which are loosely thought of as a "book". It's not really a book, but still the tree structure is a useful arrangement. I've published a lot of pages using the book structure and it was alarming that the structure got lost during the upgrade.

Drupal layout mysteriously broken on Internet Explorer?

On my Drupal-based forum site there was a problem - On Internet Explorer the page layout was horribly broken. The content, instead of laying out in a 2 or three column arrangement, had each section of the right/center/left columns one after another. It was as if some of the style sheets simply hadn't loaded. Fortunately you could still use the site meaning missing style sheets didn't interfere with usability except that the site was horrible to look at and probably turned off any Internet Explorer visitors.

Review: Pro Drupal Development (second edition)

Drupal is a very powerful content management system that can also serve as an excellent web application development framework. The features provided by Drupal are very comprehensive, flexible, and there is a large community of excited people supporting its development. Pro Drupal Development is a developers tome worthy of the system it documents.

Messaging & Notifications modules for Drupal

One key part of a community web site is a way to notify your users of activity on the site. It helps to bring them back if they receive a notification. Otherwise they might forget about the site. Out of the box Drupal doesn't offer notification capabilities but there are addon modules which do this. I've been using the subscriptions module on my main site however it hasn't been all that pleasant.

Pages