search filters: avoid to write 3 times the same default configuration

This commit is contained in:
plegall
2025-10-28 16:35:05 +01:00
parent 9ac99be1de
commit f0f4b30ce2
5 changed files with 34 additions and 30 deletions
+25
View File
@@ -1027,12 +1027,37 @@ $conf['batch_manager_images_per_page_unit'] = 5;
// how many missing md5sum should Piwigo compute at once.
$conf['checksum_compute_blocksize'] = 50;
// +-----------------------------------------------------------------------+
// | Search |
// +-----------------------------------------------------------------------+
// quicksearch engine: include all photos from sub-albums of any matching
// album. For example, if search is "bear", then we display photos from
// "bear/grizzly". When value changed, delete database cache files in
// _data/cache directory
$conf['quick_search_include_sub_albums'] = false;
// default configuration for search filters. It will then be configurable
// with the configuration page. Having this setting in this file avoids to
// duplicate it in several files
$conf['default_filters_views'] = array(
'words' => ['access'=>'everybody', 'default'=>true],
'tags' => ['access'=>'everybody', 'default'=>false],
'post_date' => ['access'=>'everybody', 'default'=>false],
'creation_date' => ['access'=>'everybody', 'default'=>true],
'album' => ['access'=>'everybody', 'default'=>true],
'author' => ['access'=>'everybody', 'default'=>false],
'added_by' => ['access'=>'everybody', 'default'=>false],
'file_type' => ['access'=>'everybody', 'default'=>false],
'ratio' => ['access'=>'everybody', 'default'=>false],
'rating' => ['access'=>'everybody', 'default'=>false],
'file_size' => ['access'=>'everybody', 'default'=>false],
'height' => ['access'=>'everybody', 'default'=>false],
'width' => ['access'=>'everybody', 'default'=>false],
'last_filters_conf' => true,
);
// +-----------------------------------------------------------------------+
// | log |
// +-----------------------------------------------------------------------+