SP Easy Image Gallery - Sort Images - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

SP Easy Image Gallery - Sort Images

Django

Django

Extension 3 months 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).

0
9 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 3 months ago #197627

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,

0
Django
Django
Accepted Answer
3 months ago #197631

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

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 3 months ago #197633

Please, check the screenshot.

Thanks

0
Django
Django
Accepted Answer
3 months ago #197641

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

0
MiBa
MiBa
Accepted Answer
3 months ago #197634

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

0
Django
Django
Accepted Answer
3 months ago #197643

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.

0
MiBa
MiBa
Accepted Answer
3 months ago #197646

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.

0
Django
Django
Accepted Answer
3 months ago #197647

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

0
MiBa
MiBa
Accepted Answer
3 months ago #197651

Glad to help.

0