drupal

OSM for your Web Site

I did a 20-minute presentation for the Waterloo Web Design and Technology Meetup Group in September 2010. The slides and links are available here.  read more »

From 2500 to Ten

My presentation slides from DrupalCampToronto 2008.

Drupal: One web form for each product.

in

Are you using the Drupal webform.module to get visitor feedback? Do you want to indicate in the webform, from where the visitor chose to contact you? Here you go.

Let's suppose that the site has many products and the visitor can request additional information on each product, directly from the product node. It will be helpful if the product name is automatically included in the web form when submitted by the user.

Here's how to do it.  read more »

  1. Create some product nodes with CCK
  2. Create the web form with webform.module

Installing drupal on ubuntu 7.10 localhost ( Gutsy Gibbon )

This presumes that you will install drupal 6 in /var/www/drupal6/

Prerequisites

apt-get install apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server

Configure httpd.conf by adding a ServerName line

ServerName localhost

[Updated for Jaunty]

Configure /etc/apache2/sites-available/default by allowing overrides

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

Start apache
 read more »

Drupal import_html module

The Drupal import_html module needs tidy and xsl. These are not installed by default on a ubuntu 6.06 server. The solution was easily found on Soledad's blog.

XSL support in php5 is deactivated by default. Go to Synaptic Package Manager and search for php5-xsl. Mark the package for installation, apply the changes and once it's finished, don't forget to restart the server!

sudo /usr/sbin/apache2 -k restart

Extending contemplate.module

The contemplate (Content template) module is awesome. Since I can't leave well-enough alone, I thought it could be extended to add similar templates for adding and editing content.

We all know how awesome contemplate module is. (If you don't know, go download it and try it out. Then come back. I'll wait here.) This is why I think extending it would be awesome.  read more »

Importing data from a homebrew CMS to Drupal

This question is often asked in the forums and on IRC.

lyricnz: on irc.freenode.net #drupal-support said: "use get_form to find what's in the form, then populate an array, and call drupal_execute"

Drupal views exposed filters need a range operator

The filter operations for views can be used to filter nodes. Multiple filters on the same operand is a hack that results in a filter range. But exposing those filters causes the range-hack to fail and only consider one of your two desired filters.

Views needs and exposed filter range operator.

And now they can now they can have it.

Drupal imagecache doesn't create thumbnails

From the Imagecache project page

Drupal 4.7.3 generated a .htaccess file in the public files folder. If you are running Drupal 4.7.3 [or later, apparently] the following lines in that .htaccess file need to be changed.

Options None -> Options FollowSymlinks
RewriteEngine Off -> #RewriteEngine Off.

Do not delete this .htaccess file as Drupal will regenerate it.

Postfix relayhosts Ubuntu 6.06

Drupal installation not sending mail to users on Ubuntu 6.06?

dpkg --remove postfix
dpkg --purge postfix
apt-get -V install postfix

choose satellite
for relayhost use smtp.yourisp.example.com

try now.

Syndicate content