Issue Bug Closed

#18900Defining alternative icons with specConfs.[pid].pageIcon does not work

M. Stichweh 06/03/08, 14:58 updated 10/02/18, 12:31

Description

There is a caching problem when getting the result item icons. Thus the icon of the first item on the current page will be used for all items ignoring any other settings by specConfs.[pid].pageIcon.
This is because the first icon will be cached for the pagetype and all typo3 pages has the type “0”.

This changes will fix the problem but the caching will be disabled for special icons:

pi/class.tx_indexedsearch.php – line: 1868:

function makeItemTypeIcon($it,$alt=’‘,$specRowConf) {

$ignoreCache = false;
if (!is_array($this->conf[‘iconRendering.’])) {
if ($it===‘0’ && is_array($specRowConf[‘pageIcon.’])) {
$ignoreCache = true;
}
}
if (!isset($this->iconFileNameCache[$it]) || $ignoreCache)    {
….
(issue imported from #M8597)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.