PDA

View Full Version : Picture Order - sort by FileName?


Miika
21st of April 2004 (Wed), 03:41
Anyway: here's the (beginner's :oops: ) problem:

I uploaded with "sort by modification date" instead of "sort by file name" thus I lost the chronological order of the images. (I can't find any explanation to this except for Windows file handling during batch resize).

There seem to be no way of ordering pictures by file name after upload to database.

In the public browser and photo browser I can use sort by header, which is originally derived from the file name.

I'd like to see option to sort by FileName here and there...

Suggestion for Photo editor: above picture list menu: instant sorting by clicking on "ID", "Name", "File Name"

http://www.saunalahti.fi/masunta/Kuvat/photoedit.gif

Miika

Cyclist
22nd of April 2004 (Thu), 01:51
That's a great idea, I would like have such a option too. It would be a great option for the copy /move / delete function as well. For me it would mean a much quicker way of copying images which I want to assign to the same exhibition. It would be also great to have exhibition sorted by names instead of ids. Exhibitions which I added a bit later are now not in the right order which will become a problem as more exhibitions I gonna have. Right now there are already more than 300. Sometimes it takes me quite a long time finding the wanted exhibition since I only know the name but not the id.

malum
26th of January 2005 (Wed), 02:55
You can do it by editing the php files (which is obviously not ideal if you want to change it often) but it's the best I can do. Would be nice to have the option on the page though.



Changing photo list order on input side to sort by filename

photo order in photo editor

in input folder

EDITOR_photo.php change line 1597 and 1598 to

ORDER by
ee_photo.ee_photo_filename


and to sort by filename in copy.move/delete section

In input folder


EDITOR_copy_move_delete.php

line 1464 and 1465 (note: line numbers are from fixed update of this file)

change to

ORDER
by ee_photo.ee_photo_filename