SP Easy Image Gallery Album Ordering - Forum | JoomShaper
Staff replied Extensions

SP Easy Image Gallery Album Ordering

Asked by Mark Dixon 4 years ago Last activity 4 years ago

Hi,

I have been adding a lot of albums using SP Easy Image Gallery but want to change the order it displays on the site. How do you do this, if it is possible. It seems to display new ones last and I cannot find a way of changing this.

3 replies

Ofi Khan Staff

Hello Mark Dixon

In which order do you want to show the albums?

Best regards

Mark Dixon Asked this
4 years ago · edited

Hi Thanks for the reply,

I would like to be able to adjust it, say one week have a particular album first. If thats not possible then the date the images were taken rather than when the album was created, with the newest first.

Basically chaneg the order in the same way you can change the category order by click and drag if possible.

Regards

Ofi Khan Staff

okay, then please go to this location: components/com_speasyimagegallery/models/albums.php and on line 61

$query->order('a.ordering ASC');

change this line. By default it is set to ordering ascending. If you change it to a.created ASC, then it will sort according to the creation date. Hopefully, you are getting this. Sorry, we do not provide customization support. So, I showed you the way.

Log in to reply.