SP Easy image gallery - sort images - Forum | JoomShaper
Awaiting an answer Extensions

SP Easy image gallery - sort images

Asked by Django 1 year ago Last activity 1 year ago

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).

6 replies

Ziaul Kabir Staff
1 year ago · edited

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,

Django Asked this

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).

Ziaul Kabir Staff

Please, check the screenshot.

Thanks

Django Asked this

That's what I've been doing until now.

MiBa

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');

Django Asked this
1 year ago · edited

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.

MiBa
1 year ago · edited

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.

Django Asked this

It seems to be better with a.filename.
Thanks a lot MiBa !

Log in to reply.