diff --git a/module/search/search.php b/module/search/search.php index 39b2f15c..ee06f007 100755 --- a/module/search/search.php +++ b/module/search/search.php @@ -33,6 +33,10 @@ class search extends common { public static $motentier = ''; + public static $defaultButtonText = 'Rechercher'; + + public static $defaultPlaceHolder = 'Un mot clé ou une phrase entière sans guillemets'; + const SEARCH_VERSION = '1.1'; // Configuration vide @@ -41,7 +45,8 @@ class search extends common { // Soumission du formulaire $this->setData(['module', $this->getUrl(0), [ 'submitText' => $this->getInput('searchSubmitText'), - 'placeHolder' => $this->getInput('searchPlaceHolder') + 'placeHolder' => $this->getInput('searchPlaceHolder'), + 'resultHideContent' => $this->getInput('searchResultHideContent',helper::FILTER_BOOLEAN) ]]); // Valeurs en sortie, affichage du formulaire $this->addOutput([ @@ -156,7 +161,7 @@ class search extends common { 'notification' => $notification, 'state' => $success, 'showBarEditButton' => true, - 'showPageContent' => true + 'showPageContent' => !$this->getData(['module', $this->getUrl(0),'resultHideContent']) ]); } else { // Valeurs en sortie, affichage du formulaire diff --git a/module/search/view/config/config.php b/module/search/view/config/config.php index ab7416fe..f3dc2d59 100755 --- a/module/search/view/config/config.php +++ b/module/search/view/config/config.php @@ -21,17 +21,24 @@ 'Texte du bouton de soumission', 'value' => $this->getData(['module', $this->getUrl(0), 'submitText']), - 'placeholder' => 'Rechercher' + 'placeholder' => $module::$defaultButtonText ]); ?>