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.
Hi,
How can I sort albums that newest album is at first and oldest is last. Right now oldest album is first and newest is last.
Comments
Comment #1
silkogelman CreditAttribution: silkogelman commentedWould be nice if this was a View, that way it's easily adaptable for every usecase.
Comment #2
silkogelman CreditAttribution: silkogelman commentedMedia module is heading for Views 3 support:
#962110: Add views handlers for the media field type
Comment #3
damiandab CreditAttribution: damiandab commentedI also didn't figured out, how can I change sorting of Gallery Albums. Even If I change the the post date of Gallery, the sorting doesn't change :(
Any help would be very appreciated.
Thanks,
Damian
Comment #4
damiandab CreditAttribution: damiandab commentedok, I found it. The media gallery sorts albums not by date but by media gallery weight.
media_gallery.module - function at line 1189
To change the sorting, from newest to oldest album, replace these lines :
with:
Comment #5
damiandab CreditAttribution: damiandab commentedWould be nice to expose media gallery weight to could manage custom sorting or make functional drag&drop sorting for albums.
Comment #6
nesca CreditAttribution: nesca commentedwhat about sorting by date?
Comment #7
cntour CreditAttribution: cntour commentedthanks a lot #4. It worked for albums order.
what about photos in one gallery? I need those photos newly uploaded to be displayed first in the gallery. Is it possible?
TY
Comment #8
mfgr CreditAttribution: mfgr commentedStrange thing is, I have been working with Media Gallery for a few weeks now but I can't seem to get this sorting in order. I tried manipulating the weight of the galleries I have but the front page, which displays all galleries, does not change at all. I have Media Gallery and Media installed, the current versions (updated today) and still nothing.
Since I have a new website and everything is still pretty clean, I have no idea what I'm doing wrong. Am I just overlooking something ?
Comment #9
claudio_s CreditAttribution: claudio_s commentedExposing weight is the ultimate solution. In the meantime, sorting by title works best for my needs.
If you want to sort by title, make the following modifications to media_gallery.module
Comment #10
KungLi CreditAttribution: KungLi commentedAfter trying #9 my gallery page was empty, no more galleries were shown.
Comment #11
sterndata CreditAttribution: sterndata commented#4 worked for me. I'd love to see the settings exposed.
Comment #12
csc4 CreditAttribution: csc4 commentedI'm using Media Gallery 7.x-2.x-dev and dragging the galleries on the /galleries page is working for me to reorder as wished - if that helps anyone.
Comment #13
xavier19 CreditAttribution: xavier19 commentedHello Friends,
is it possible to sort albums in media gallery by date? Thank you for any help ;)
Comment #14
ivnish CreditAttribution: ivnish commented