[FEATURE][CONF] Option to hide BE search box in list mod
authorSteffen Müller <typo3@t3node.com>
Fri, 1 Apr 2011 13:03:17 +0000 (15:03 +0200)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 3 Apr 2011 09:48:09 +0000 (11:48 +0200)
Change-Id: Ic93ccc8c736ad95952b97da82152f0621cff9195
Resolves: #25705
Reviewed-on: http://review.typo3.org/1405
Reviewed-by: Alexander Stehlik
Tested-by: Alexander Stehlik
Reviewed-by: Steffen Kamper
Tested-by: Steffen Kamper
typo3/sysext/recordlist/mod1/index.php

index 676eb19..815a86a 100644 (file)
@@ -456,12 +456,14 @@ class SC_db_list {
                        }
 
                                // Search box:
-                       $sectionTitle = t3lib_BEfunc::wrapInHelp('xMOD_csh_corebe', 'list_searchbox', $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.search', TRUE));
-                       $this->body .= $this->doc->section(
-                               $sectionTitle,
-                               $dblist->getSearchBox(),
-                               FALSE, TRUE, FALSE, TRUE
-                       );
+                       if (!$this->modTSconfig['properties']['disableSearchBox']) {
+                               $sectionTitle = t3lib_BEfunc::wrapInHelp('xMOD_csh_corebe', 'list_searchbox', $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.search', TRUE));
+                               $this->body .= $this->doc->section(
+                                       $sectionTitle,
+                                       $dblist->getSearchBox(),
+                                       FALSE, TRUE, FALSE, TRUE
+                               );
+                       }
 
                                // Display sys-notes, if any are found:
                        $this->body.=$dblist->showSysNotesForPage();