Dear support,
I want list(sort) all albums by its sub albums or images updated date, how to do that?
currently I'm listing albums by date, but it is sorting only newly created albums, but not updated albums.
@acrylian:
I have updated the album options with your solution, with the following query:
UPDATE ``zp_albums SET sort_type ='mtime', subalbum_sort_type='mtime' WHERE 1
it is working exactly, but it is descending order, but i want latest first!
@sbillard: Yes, is there another sort way, we can do it.
Hello sbillard,
i have changed album_sortdirection=0, but stills the list didn't get change.
How to change this in admin in single page/click?
Thanks sbillard, i will try it.
sbillard: latest image date was updated album date, but it is not updating it's parent album( which is don't have images, only sub albums).
Is there any possible we can get it future? or please give me idea, how to update the album date with it's latest sub album date.
You can build a filter that does this. Register to the the new_image filter. You can use the filter-new_objects plugin as a starting point. The new_image filter will be called each time a new image is instantiated. Your code should walk back the parent chain setting the date fields as you see fit.