developer

Easy Recipe for a photo gallery with a slideshow block

Background

You have an active online community (your scout troop or church) where members are taking photos at events. You want to collect those photos into various photo albums and also make them available in a block on your other pages. Here's a quick step-by-step recipe.

  1. Download, install, enable the modules you'll need: CCK, Views, FileField, ImageField, ImageAPI, ImageCache, Views Slideshow
  2. Create a "photo" content type. Rename the title field "caption". Add a field called "photo".

Limiting number of characters allowed in a profile field

I finally solved the problem I'd been working on the last week or so: what's the Drupal way to limit the length of a profile field?

Problem: don't let users enter more than 4 characters into a field. (E.g., last four of your social, or last four of your passport, etc.)

Google wasn't too helpful. I only learned from Google that I wanted to set the maxlength attribute on the text input field:
<input type='text' maxlength='4'>

Syndicate content