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.
When uploading new images to a pre-existing gallery, I want the images to be prepended to the gallery, rather than appended. As of now, I must upload the new images to the gallery, show all of the images on a single page (which will often be many images), drag and drop the images from the very back to the front, then change the gallery back to only showing a few images per page with a pager.
It would be nice if there were some kind of checkbox toggle to say "upload to back" or "upload to front" or something similar. Is this already possible, or is this a new feature?
Comments
Comment #1
jizq CreditAttribution: jizq commentedSubscribe
Comment #2
mrryanjohnston CreditAttribution: mrryanjohnston commented@jizq You don't need to make a "Subscribe" post in order to subscribe to issues now. Just use the big button at the top right hand side.
You can hack this at line 289 on `media_gallery.pages.inc` by doing an array_merge of the new images, but this doesn't provide a little toggle switch.
Comment #3
kuuser CreditAttribution: kuuser commentedI was able to do this (haven't checked for bugs yet) by changing this line in media_gallery.pages.inc from this: $items[] = $file; to this: array_unshift($items, $file);
Comment #4
ivnish CreditAttribution: ivnish commented