Using Thickbox with Image Galleries
Thickbox allows you to show full-size images without leaving the gallery page, and also adds 'previous' and 'next' links.
The image gallery module lets you organize your image nodes into galleries, showing thumbnails that link to the image nodes. This levers Drupal's taxonomy, creating galleries as terms in a vocabulary.
In versions 5.x-2.x-dev and 6.x-1.0 of the image module package, image galleries are optionally created with the Views module. This gives you considerable control over the display of image galleries. Install the Views module to get this functionality instead of the old built-in galleries, and enable the Views UI module to customize the views.
The gallery is made up of two views: the image_gallery view embeds the image_gallery_terms view in order to show the child galleries above the image nodes. This embedding is automatically done by the 'Gallery page' display.
Some points to note:
- If you set a different path for the gallery view, then standard taxonomy term links will not go to the view. You will need to either set the view field up to output differently, or use taxonomy_redirect module to output the term links for the galleries vocab to go to your view's path.
There are three default views provided:
To customize any of these views, go admin/build/views, find the view under 'Default Views' and click 'Add' to create your own view to override it. Then:
You can also create your own views of images. For example, you could create a gallery of images per user, or for another vocabulary. To make an image gallery view, you need the following options, along with any other fields, filters, or sort criteria you like:
See the Views user documentation for more information on creating and customizing views.
See http://drupal.org/node/41257
If you don't have Views module installed, or you disable the image gallery view, then you get the old style of gallery. These are hardcoded, and therefore you have fewer options.
The path for the image galleries page is image, and each individual gallery is at image/tid/{n}, where {n} is the term id for that gallery. You can override these paths with the path module.
By default, the image gallery taxonomy has a single hierarchy, allows image nodes to belong to only one gallery, and is not required for image nodes. You can change any of these options for the image gallery vocabulary at the regular taxonomy admin page, admin/content/taxonomy.
Thickbox allows you to show full-size images without leaving the gallery page, and also adds 'previous' and 'next' links.