Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here is a patch to version 1.9 of gallery.module (current cvs version). This patch does 3 things:
- Ensure image type selection works (see http://drupal.org/node/31398)
- Allow for multiple images in the block via checkboxes.
- Use Gallery2 naming for Image Types
The allowance of mulitple images in the block is as in the old gallery.module -- not sure why it was changed, but I prefer to have more than one image in the block. There is a check made to see if anything was selected. If not it quietly defaults to randomImage.
Note that you may get an error the first time you use this as the gallery_block_block_0 variable is now an array. Just go back into the config page, select the images you want and save it. It should then work.
Comment | File | Size | Author |
---|---|---|---|
#2 | patch_12.txt | 3.42 KB | darius |
gallery.module.kjp.diff | 2.99 KB | kiz_0987 |
Comments
Comment #1
alexandreracine CreditAttribution: alexandreracine commentedSomeone wants to try that? :)
Comment #2
darius CreditAttribution: darius commentedHello,
I updated this patch to the right format and the latest CVS version 1.11. It works. These are small changes and it would be nice to see them committed.
Darius
Comment #3
walkah CreditAttribution: walkah commentedcommitted to CVS. thanks.
Comment #4
(not verified) CreditAttribution: commented