Project

General

Profile

Actions

Bug #20020

closed

Not possible to blind in the advanced search the option

Added by Tapio Markula about 15 years ago. Updated over 10 years ago.

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)

Actions

Also available in: Atom PDF