I've gotta preface this by saying: thanks, Tristan, for this fantastic program! Even in beta, I like it MUCH better than everything else I've tried.
On to the question:
Per the ZenPhoto web page, I already know that sorting is planned for a future release. Until then, is there a way to manually "force" the sorting of albums on the index page? Such as modifying the album creation date, or something?
Comments
There's not really a way to modify this after you've uploaded, so it's not really good for sorting. I'll try to get that in the next version...
Or, I'd just settle for textboxes for numbers...
:-)
One idea: Could ZP respect the order the files are numbered in, as in 1.jpg, 2.jpg...etc, or 2003.jpg, 2345, jpg.
If that could be done, one could rearrange them via ftp renaming. For now...
This would make it possible to have a photo that stays at the bottom, 9999999.jpg for example, and one that stays at the top of a gallery.
I know, it's really bugging me too, and that just means it'll be done faster.
natcasesort($images);
This'll give you basic natural alphabetical sorting, which works pretty well for most image names. Especially if you have just pulled them off a digital camera.
natcasesort($images);
// Store the result so we don't have to traverse the dir again.
$this->images = array_values($images);
Note: the last line replaces the previous storing of the array. That'll solve the next/prev links problem.
i added the following lines:
natcasesort($images);
//$this->images = $images;
$this->images = array_values($images);
but the albums on the index pages are still in an order i can't recall
and is there a way to change this?
http://www.zenphoto.org/support/topic.php?id=138