Index: typo3conf/ext/tt_news/mod1/index.php =================================================================== --- typo3conf/ext/tt_news/mod1/index.php (revision 75) +++ typo3conf/ext/tt_news/mod1/index.php (working copy) @@ -1167,7 +1167,6 @@ 'showOnlyEditable' => 0, 'showHiddenCategories' => 0, 'searchLevels' => array( - -1 => $GLOBALS['LANG']->getLL('allPages'), 0 => $GLOBALS['LANG']->getLL('thisPage'), 1 => $GLOBALS['LANG']->getLL('oneLevel'), 2 => $GLOBALS['LANG']->getLL('twoLevels'), @@ -1182,6 +1181,18 @@ ) ); + if ($this->TSprop['searchLevels.']['allowAll'] == 1){ + $this->MOD_MENU['searchLevels'] = array(-1 => $GLOBALS['LANG']->getLL('allPages')) + $this->MOD_MENU['searchLevels']; + } + if ($this->TSprop['searchLevels.']['maxLevels'] || strlen($this->TSprop['searchLevels.']['maxLevels']) >= 1){ + foreach($this->MOD_MENU['searchLevels'] as $slvlKey => $slvlVal){ + $testval .= $slvlKey.','; + if ($slvlKey > $this->TSprop['searchLevels.']['maxLevels']){ + unset($this->MOD_MENU['searchLevels'][$slvlKey]); + } + } + } + $this->initLanguageMenu(); $this->MOD_MENU['function'] = $this->mergeExternalItems($this->MCONF['name'],'function',$this->MOD_MENU['function']);