mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-18 23:53:39 +02:00
feature 169 added: ability to manually sort images inside a category. A
dedicated screen let the administrator sort the images (pur HTML, no JavaScript yet). The "rank" sort order is available only for a category without flat mode. New database column image_category.rank. git-svn-id: http://piwigo.org/svn/trunk@2517 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -63,6 +63,16 @@
|
||||
// the date_available
|
||||
$conf['order_by'] = ' ORDER BY date_available DESC, 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'];
|
||||
|
||||
// file_ext : file extensions (case sensitive) authorized
|
||||
$conf['file_ext'] = array('jpg','JPG','jpeg','JPEG',
|
||||
'png','PNG','gif','GIF','mpg','zip',
|
||||
|
||||
Reference in New Issue
Block a user