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