Make a Drupal image gallery without using modules
I can't stand the over-use of contrib modules when they just aren't necessary. When a visitor loads your Drupal front page, all of your modules are opened and read by the server whether they affect the front page or not. PHP searches files for hooks that need to be fired, a huge number of database requests are made that don't necessarily have a purpose, and on the list goes. Why use modules that perform tasks already available to you such as including a JS library in your theme's folder, firing a trigger/action when a user logs in, or building your own custom content type? Speaking of the latter, I've been giving customers really simple image galleries through the use of CCK/ImageCache for Drupal 6 OR Fields/Image Styles for Drupal 7 and not relying on something like the Image module that requires the customer to understand taxonomy, how to track down image nodes and how they are related to the "master" image gallery term.
Regardless of whether you're doing this in D6 or D7, the overall process is the same:
- Create a new content type called "Photo Gallery" or whatever makes the most sense for your project.
- Add the necessary fields (for D6 you'll want to have CCK and ImageField installed; most sites will already have those):
- Head to the "Display" tab for this content type, and configure the Images field to be displayed however you'd like. I recommend setting the image to display as a ImageCache/Image Style preset that links to another ImageCache/Image Style preset, then use something like Fancybox to hijack the links to display in an overlay.
Here's what you'll get:
Use this mindset throughout Drupal. Don't get trigger happy installing dozens of modules that do this for you -- setup the structure yourself and you'll have a more custom site that you know and control, and can better meet your clients needs and give them something that's less confusing to maintain.