Actions
Bug #20020
closedNot possible to blind in the advanced search the option
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2009-02-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Hi
It is not possible to blind the option 'All pages on level 1' (concerns apparently also 'All pages on level 2').
That would need an additional config, for example
...
blind {
...
sections.all_1_level=1
...
sections.all_2_level=1
...
}
and extra handling of these values.
// Blind selectors:
if (is_array($this->conf['blind.'])) {
foreach ($this->conf['blind.'] as $kk => $vv) {
if (is_array($vv)) {
foreach ($vv as $kkk => $vvv) {
if (!is_array($vvv) && $vvv && is_array($this->optValues[substr($kk,0,-1)])) {
unset($this->optValues[substr($kk,0,-1)][$kkk]);
}
}
} elseif ($vv) { // If value is not set, unset the option array.
unset($this->optValues[$kk]);
}
}
if($this->conf['blind.']['sections.']['all_1_level'])
unset($this->optValues['sections']['rl1_'.implode(',',array_keys($firstLevelMenu))]);
if($this->conf['blind.']['sections.']['all_2_level'])
unset($this->optValues['sections']['rl2_'.implode(',',array_keys($secondLevelMenu))]);
}
(issue imported from #M10441)
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.2
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.
Actions