overlay_gallery_screenshot.jpg

This project is not covered by Drupal’s security advisory policy.

The Overlay Gallery module mainly consists of some javascript to display a gallery as an overlay. The outcome looks similar to what Lightbox and consort do but rather than only showing single pictures, this module shows the entire gallery in an overlay.

Integration

In order to use the JS code, it has to be plugged to your gallery. The module already comes with integrations to some modules (see next section). If you're using those modules out of the box, Overlay Gallery will work out of the box too.
If you're using a different gallery mechanism, you'll have to plug this module in by yourself by doing the following steps:

  1. Implement hook_overlay_gallery_load($galleryID) and hook_overlay_image_load($imageID) that return JSON representatives of a gallery or image to the javascript.
  2. complement the link tags that refer to your gallery by a class="overlay-gallery" and a ref="{$galleryID}" attribute.

The {$galleryID} / {$imageID} should be the ids of the drupal elements. If your galleries are nodes, $galleryID is equal to the gallery's node id, if galleries are taxonomy terms, $galleryID is the tid of the gallery and so on. In your hooks you'll get those IDs so that you can load the objects and return the relevant data to the javascript.

Existing Integrations

Currently, the module only comes with an integration for the Image module. More integrations will follow.

Project information

Releases