Filemanager: default sort is now modified time descending

This commit is contained in:
nathan 2022-11-07 13:20:29 -07:00
parent dcd9430d22
commit cc1ef360ec

View File

@ -385,17 +385,20 @@ class filemanager_ui
if (!is_array($content['nm'])) if (!is_array($content['nm']))
{ {
$content['nm'] = array( $content['nm'] = array(
'get_rows' => 'filemanager.filemanager_ui.get_rows', // I method/callback to request the data for the rows eg. 'notes.bo.get_rows' 'get_rows' => 'filemanager.filemanager_ui.get_rows',
// I method/callback to request the data for the rows eg. 'notes.bo.get_rows'
'filter' => '', // current dir only 'filter' => '', // current dir only
'no_filter2' => True, // I disable the 2. filter (params are the same as for filter) 'no_filter2' => True, // I disable the 2. filter (params are the same as for filter)
'no_cat' => True, // I disable the cat-selectbox 'no_cat' => True, // I disable the cat-selectbox
'lettersearch' => True, // I show a lettersearch 'lettersearch' => True, // I show a lettersearch
'searchletter' => false, // I0 active letter of the lettersearch or false for [all] 'searchletter' => false, // I0 active letter of the lettersearch or false for [all]
'start' => 0, // IO position in list 'start' => 0, // IO position in list
'order' => 'name', // IO name of the column to sort after (optional for the sortheaders) 'order' => 'mtime', // IO name of the column to sort after (optional for the sortheaders)
'sort' => 'ASC', // IO direction of the sort: 'ASC' or 'DESC' 'sort' => 'DESC', // IO direction of the sort: 'ASC' or 'DESC'
'default_cols' => '!comment,ctime', // I columns to use if there's no user or default pref (! as first char uses all but the named columns), default all columns 'default_cols' => '!comment,ctime',
'csv_fields' => false, // I false=disable csv export, true or unset=enable it with auto-detected fieldnames, // I columns to use if there's no user or default pref (! as first char uses all but the named columns), default all columns
'csv_fields' => false,
// I false=disable csv export, true or unset=enable it with auto-detected fieldnames,
//or array with name=>label or name=>array('label'=>label,'type'=>type) pairs (type is a eT widget-type) //or array with name=>label or name=>array('label'=>label,'type'=>type) pairs (type is a eT widget-type)
'row_id' => 'path', 'row_id' => 'path',
'row_modified' => 'mtime', 'row_modified' => 'mtime',