N NyaChan Chevereto Member Sep 30, 2017 #1 Website URL https://h Chevereto version 3.10.3 Description of the issue How to use "date_asc" instead of "date_desc" by default inside an album? Last edited: Sep 30, 2017
Website URL https://h Chevereto version 3.10.3 Description of the issue How to use "date_asc" instead of "date_desc" by default inside an album?
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Sep 30, 2017 #2 Open app/routes/route.album.php Replace this: PHP: $list_params = CHV\Listing::getParams(); // Use CHV magic params With this: PHP: if(empty($_REQUEST['sort'])) { $_REQUEST['sort'] = 'date_asc'; } $list_params = CHV\Listing::getParams(); // Use CHV magic params It should look like this:
Open app/routes/route.album.php Replace this: PHP: $list_params = CHV\Listing::getParams(); // Use CHV magic params With this: PHP: if(empty($_REQUEST['sort'])) { $_REQUEST['sort'] = 'date_asc'; } $list_params = CHV\Listing::getParams(); // Use CHV magic params It should look like this: