Always Moving, Part 1

It likely would have been a lot easier to set this up in Wordpress, but I decided Drupal was the way to go, since I enjoy working with it so much. Another mark in Drupal's favor, is that I have been burned by some Wordpress (and Joomla for that matter) plugins going dark in the past, or not being updated for the latest releases of Wordpress. While that is still a danger with Drupal, I feel comfortable enough with the Drupal framework to trouble shoot any problems that come up myself. I just needed to actually get to work.

This site is a decent example of fulfilling some basic website needs, and barely scratches the surface of the potential of Drupal. This post is meant to outline those needs, and how I used this software to meet them.

What I needed:

  • An "About" page
  • A blog
  • A contact form
  • A portfolio
  • Posting must require minimal effort.

The first three items are included with a normal Drupal install. After installing the CMS. Page content is already activated, so the For a one-person blog, the option to add a new page is right there in the "Create Content" section of the Navigation menu. I decided to use the "Story" content item for blog entries. The Blog module is really designed for a multi-user site, and has some default formatting that a single user site doesn't really need. I activated the contact module and set up the contact page through the site-wide form.

The last item on my list needed a bit more than the basic install, namely the Content Construction Kit, or CCK for short (http://drupal.org/project/cck). This module allows you to create new content types, which can hold all types of information. That's kind of a broad explanation, so I'll give you a real example.

The basic content items, including blog entries, stories, and pages all have a title, author, and text included in them. I needed a new content type that had all of those items, but also a thumbnail image, and an unspecified number of additional images. This would be a "portfolio item" content type.

Sure I could have done this with a Story or Page content type, and just written HTML for all the extra images, but that would not be very efficient, and if I ever wanted to change the way those pages looked, I would need to re-do all that HTML. I am far too lazy for that.

Using the CCK module, I added a new content type (portfolio), and added the field I needed. Since the new fields were image files, I also need some supplemental modules, FileField, ImageCache and a couple supplemental modules that the Imagecache module needs. Those modules handle the uploading of files through the node edit interface, and handle the display of images once uploaded. This meant I wouldn't have to add any img tags to my portfolio content, as Drupal would handle all of that. Imagecache would even generate alternate sizes so I could just upload one image and it would handle the rest.

Once the new content type was there, the functional parts of the site were pretty much done. After that I just needed to make it pretty. I'll leave that for another post.