![]() |
|
Reverse Order Subalbums?! - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Reverse Order Subalbums?! (/thread-1587.html) |
Reverse Order Subalbums?! - aitf311 - 2007-08-10 My subalbums are appearing in the order that I upload them, oldest on top, newest on bottom. I would like to have it be the opposite, with the oldest on the bottom, newest on top. Does anyone know how to accomplish this? Reverse Order Subalbums?! - aitf311 - 2007-08-10 I retract my question! While applying some ticket patches to my code, one of them did the trick for me. Thanks to whoever read this anyways. Reverse Order Subalbums?! - sbillard - 2007-08-10 Subalbums don't get sorted in the current ZenPhoto versions. If you want to set the order of appearances you can, but it is a 'manual' process and you need to modify class-album.php around line 130. Change the code which reads:
to
You have to use SQL queries to change the sort_order field in the database for each of the subalbums. I use phpMyAdmin for this. Reverse Order Subalbums?! - aitf311 - 2007-08-10 sbillard, will this fall back on the old way if the subalbums are not sorted? Reverse Order Subalbums?! - sbillard - 2007-08-10 Here is what the comment says: ` * Sort the album array based on either a) the manual sort order as specified by the user,
Before, there was no sorting, so the albums came back in the order returned from disk. |