Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Sort order with mixed folders
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3719
Page 1 of 1

Author:  Jo380 [ 22. Aug 2014, 08:18 ]
Post subject:  Sort order with mixed folders

Hi Michael
I try to get an alphabetical sorting for a folder containing photos and videos; file names are all of the form YYYY_MMJJ_HHMMSS, therefore alphabetical order is the same as chronological order.
For TWG recognizes the videos, I added the prefix v___ to the videos and to images corresponding to these videos.
My problem is all the images corresponding to the videos are ranked at the end, and are no longer in chronological order.
I have not found a solution with foldername.txt
Regarding the sort prefix 001___, it requires renaming all the files in all the folders containing even a single video (almost all folders!) ; I have thousands of photos and videos, and it's a big job!
TWG does not display the v___ prefix, would there be a solution so it also ignores this prefix in the default sort order?
Thank you in advance for your answer.

Jo

Author:  TinyWebGallery [ 22. Aug 2014, 08:34 ]
Post subject:  Re: Sort order with mixed folders

Currently not. the v___ prefix is remoed for display. I have to check what has to be done for this change...

Best, Michael

Author:  Jo380 [ 22. Aug 2014, 09:21 ]
Post subject:  Re: Sort order with mixed folders

Hi Michael,

Thanks for your answer, and for your interest with my request.
Your work is truly remarkable, and your responsiveness to user questions.

Best regards,

Jo

Author:  TinyWebGallery [ 22. Aug 2014, 11:37 ]
Post subject:  Re: Sort order with mixed folders

Hi Jo,

I think it is possible because I use a comperator here. And I can extens this to ignore the v___.
I'll test this and let you know.

Best, Michael

Author:  TinyWebGallery [ 25. Aug 2014, 00:06 ]
Post subject:  Re: Sort order with mixed folders

My local version is not stable yet. I try to build one this week. I'm implementing responsive videos right now which war not very easy....

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/