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.
If someone sorts the gallery via drag and drop, is there anyway to make the gallery sort order available to views?
Comment | File | Size | Author |
---|---|---|---|
#2 | media_gallery-allow-gallery-sort-order-in-views-2191719-2.patch | 1.82 KB | Moloc |
Comments
Comment #1
Moloc CreditAttribution: Moloc commentedThe sort order is stored in the media_gallery_weight table in the database.
Do we have to implement hook methods for views or is the views module able to find this information somehow?
Comment #2
Moloc CreditAttribution: Moloc commentedHere is a first approach.
Comment #3
ivnish CreditAttribution: ivnish commented