Hi there,
I'm an avid user of Piwigo and it fits my needs perfectly. There's just one thing that I'm trying to figure out and that is sorting the files in alphanumerical order. If I can get that going, then it'll be perfect.
Thanks,
-Demetrius
Hi Demetrius,
Copy/past this code in [ Administration >> Plugins >> LocalFiles Editor > Tab : "Local configuration" ]
// order_by : how to change the order of display for images in a category ? // // There are several fields that can order the display : // // - date_available : the date of the adding to the gallery // - file : the name of the file // - id : element identifier // - date_creation : date of element creation // // Once you've chosen which field(s) to use for ordering, you must chose the // ascending or descending order for each field. examples : // // 1. $conf['order_by'] = " order by date_available desc, file asc"; // will order pictures by date_available descending & by filename ascending // // 2. $conf['order_by'] = " order by file asc"; // will only order pictures by file ascending without taking into account // the date_available $conf['order_by'] = ' ORDER BY file ASC, id ASC'; // order_by_inside_category : inside a category, images can also be ordered // by rank. A manually defined rank on each image for the category. // // In addition to fields of #images table, you can use the // #image_category.rank column // // $conf['order_by_inside_category'] = ' ORDER BY rank'; // will sort images by the manually defined rank of images in this category. $conf['order_by_inside_category'] = $conf['order_by'];
You can adjust this configuration :-)
This method work for the entire gallery. Will be the default parameter.
Offline
Hi,
I did just that and now I can't access my gallery at all. =/
Connect by FTP
if you use Piwigo 2.0 or before
go to include and rename file config_local.inc.php to old_config_local.inc.php
if you use Piwigo 2.1
go to local/config an rename config.inc.php to config.inc.bak.php
----------------------------
as say gotcha you must use LocalFiles Editor for add local config
Offline
I can get this to work, all is fine and sorted ASC.
But when I change "Sort order" in the dropdown menu from "Standard" to "Creation date" it is DESC and not ASC? :(
Where can I change this?
And more importantly; where can I learn things like this without asking in the forum?
Offline
I've had the same problem. Gave up and re-uploaded with the pLoader to a new category and deleted the old one, then renamed.
Offline