Hello.
Sp Easy Image Gallery always displays images in descending order by filename (highest at the top of the page). How do I do it the other way around, so I don't have to move each image one by one ?
My photos are festivals reports, which I need to display in chronological order (= the first concert at the top).
SP Easy image gallery - sort images
6 replies
Hello Django,
Thank you for reaching out to us.
You can customize the ordering to suit your specific needs.
Please note that we do not provide customization services, so you may consider hiring a developer for this type of customization.
Thank you for your understanding.
Best regards,
Thanks, but you said ascending and descending ordering. I can see only descending.
How do you select ascending ? (= lowest number at the top of the page).
Please, check the screenshot.
Thanks
That's what I've been doing until now.
components\com_speasyimagegallery\models\album.php
row 112 $query->order('a.ordering DESC'); change to ASC
If you need ALBUMS BY DATE CREATED
components\com_speasyimagegallery\models\albums.php
row 61 $query->order('a.created DESC');
Thanks MiBa.
I just made this modification, from DESC to ASC, in album.php, and then empty the cache.
But the ordering is still globally descending, and with errors. See screenshot.
Hello Django, this solution works for 100%.
You have to clean browser cache also and in browser developer tools TAB network choose "no caching".
If you will use numbered filenames in all albums here you can use a.filename instead of a.ordering
row 112 $query->order('a.ordering DESC'); change to ASC
Don't forget that is frontend view modification. In the admin area you will see different ordering.
It seems to be better with a.filename.
Thanks a lot MiBa !
Glad to help.