From 2517f0d1818fd350a916bcf343b5ccbd622a776b Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 19 Jul 2020 19:00:20 +0200 Subject: [PATCH] The user can select the min of chars to search, by default is 3 --- bl-plugins/search/plugin.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bl-plugins/search/plugin.php b/bl-plugins/search/plugin.php index ef2f2d4c..defd6ce9 100644 --- a/bl-plugins/search/plugin.php +++ b/bl-plugins/search/plugin.php @@ -10,6 +10,7 @@ class pluginSearch extends Plugin { // Fields and default values for the database of this plugin $this->dbFields = array( 'label'=>'Search', + 'minChars'=>3, 'wordsToCachePerPage'=>800, 'showButtonSearch'=>false ); @@ -29,6 +30,11 @@ class pluginSearch extends Plugin { $html .= ''.$L->get('This title is almost always used in the sidebar of the site').''; $html .= ''; + $html .= '
'; + $html .= ''; + $html .= ''; + $html .= '
'; + $html .= '
'; $html .= ''; $html .= '