I can not figure out where to change the default order so when a person visits my site the display order will be by filename. When I go to each catogory and scroll down to the sort it has a place to check " Use the default image sort order (defined in the configuration file". I am guessing this is where I need to make my change at. I just need to no how to do it.
Thanks for any help
KC
Offline
$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC';
$conf['order_by_inside_category'] = $conf['order_by'];
It's just a sample.
To do it:
- Add these lines by [extension by Piwigo Team] LocalFiles Editor (Config)
- let some space before ORDER BY
- You could use any columns from the images table (currently)
- Choose the right order ascending or descending.
- Alternative: the second statement could be coded as the first one but with different columns (means most visited are ordered in a way and in another inside a category).
Offline
Ok, I will give that a try. Thanks for your help
Offline
I was glad to find this thread about image sorting.
Since I have over 110 images in a directory I see the classic order method as listed below:
game 1-1
game 1-100
game 1-101
.
.
.
game 1-109
game 1-11
game 1-110
game 1-12
Does anyone know of a mod to fix this issue?
http://hockey.webentia.net
Offline
Why did you rename your files?
It would be much easier.
If you are not able (or don't want) to return to original file name, I will give you the solution.
The current workaround is an heavy webmaster work.
(Currently we have a feature request to add time in creation date, it will come and I don't know when exactly).
Offline
VDigital wrote:
Why did you rename your files?
It would be much easier.
I rename them to have better organization of event photos. The camera numbering system is img1287, img1288, img1289...
If original file name is used and there are over 100 photos the order will still get muffed up.
Just a small issue in my mind but quite important for event photographers.
Thank you for your quick reply on the board!
Offline
From "Edit a category"
If you return to original file names.
Just sort.
Sort order
Unselect Use the default image sort order (defined in the configuration file)
File name ascending
If you don't return to original file names.
link to: Manage image ranks
and after the boring task, just sort.
Sort order
Unselect Use the default image sort order (defined in the configuration file)
Rank ascending
Yes, having several event photographers is an issue to be sorted.
Offline
Yes, the time stamp would fix the issue for sure.
Is there a work-around for this currently?
Thanks!
Scott
SHasler wrote:
Yes, the time stamp would fix the issue for sure.
Is there a work-around for this currently?
In case you use FTP+synchronization, have your filenames like YYYYMMDDhhmmss-img1288.jpg and sort by file.
This trick will also work with pLoader in Piwigo 2.0.9.
Offline