I want my pictures sorted by Name. In default new uploaded Pictures are displayed first. How can i make that possible ?
Hello,
i know you can change it at include/config.inc.php
// How to change the order of display for images in a category ?
//
// You have to modify $conf['order_by'].
// 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
// 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 date_available DESC, file ASC';
Christophe
Offline
Hello Christophe,
that's exactly what i needed, thanx for the help !! :D
Hello Bernd,
no problem, if i can help you... :-)
Christophe
Offline
Thank you this was very useful