You are here

Node_Gallery

Submitted by Peter on Thu, 2010-03-18 19:41

Node_Gallery is one of several modules that work together in Drupal to produce a useful gallery of images.

Prerequisites

Node_Gallery requires Imagecache so set up Imagecache before Node_Gallery. Installation and configuration of Imagecache is described in Imagecache.

ImageAPI provides an image processing service to Imagecache. Install ImageAPI before Imagecache.

Installation

  1. Install ImageAPI.
  2. Install Imagecache.
  3. Download Node_Gallery from drupal.org/project/node_gallery. This page is based on version 6.x-2.0-alpha12, a 40.69 KB download from 2010-Jan-13.

The download expands out to 165 KB of code and miscellaneous files including an interface to Lightbox 2.

You will see the following messages when you switch on the Node_Gallery module.

  • Node type "Gallery (Node Gallery)" created.
  • Node type "Gallery Image (Node Gallery)" created.
  • ImageCache preset 1: node-gallery-thumbnail and corresponding actions saved.
  • ImageCache preset 2: node-gallery-cover and corresponding actions saved.
  • ImageCache preset 3: node-gallery-display and corresponding actions saved.
  • The configuration options have been saved.

Select Administer » Site configuration » Node Gallery to configure Node Gallery.

There are some common settings:
Enter the Number of galleries displayed on each main gallery list page: [20]
If this number is exceed, a pager will be displayed below the main gallery list.
Enter the Number of images displayed on each gallery thumbnail page: [20]
If this number is exceeded, a pager will be displayed below each corresponding gallery thumbnail page.
[ ] Use Named Anchors on Image "Previous" and "Next" links?

You can set up a Gallery Relationship. By the look of it you select Gallery in the first list then Gallery Image in the second list. After you save the relationship, you are offered a page with dozens of options. I used mostly the defaults.

Add-on modules

Lightbox2 displays images on the current page instead of moving to a separate page. The action is performed by Javascript using standard jQuery instead of stupid proprietary code. Of course you have to be happy with the gallery taking over the page and covering up all your nice links. If you are one of the many who hate lightboxes then provide a non lightbox option for your suffering users.

Configuration

Permissions

Node Gallery has only the following two permissions. You will often want add on modules to restrict access to a gallery by user or role.

  • administer node gallery
  • view node gallery

Usage

Conclusion