Announcement

  •  » Requests
  •  » [1.7] image_sort_default ?

#1 2007-08-31 04:27:01

Pierre76
Member
2007-08-31
2

[1.7] image_sort_default ?

hi there

well...
i missed the part where it says i should use the english forums first !
so again in english ....

i found out that there is a "default sorting of images" which is apparently set through the  "image_sort_default" according to the source code of the web page

any chance somebody knows where to find this parameter ?
i grepped around but did not find it anywhere....
so as i'd like to chose my default sorting order and put it in the configuration file...

thanks

Pierre

Offline

 

#2 2007-08-31 09:14:16

VDigital
Former Piwigo Team
Paris (FR)
2005-05-04
17680

Re: [1.7] image_sort_default ?

Create your own ./include/config_local.inc.php like this:

<?php
$conf['order_by'] = ' ORDER BY date_creation ASC, file ASC, id ASC';
?>

Any column of the images table can be in the ORDER BY clause with ASC or DESC (ascending or descending) order.
Anyway Wiki is also available to help you.

Enjoy PhpWebGallery!!!

Note: Please make some searches before asking your question is so basic.
http://phpwebgallery.net/doc/doku.php/en:configuration


Piwigo.com: Start and run your own photo gallery. Signup and get 30 days to try for free, no commitment.
8-)

Offline

 
  •  » Requests
  •  » [1.7] image_sort_default ?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact