Actions
Bug #18900
closedDefining alternative icons with specConfs.[pid].pageIcon does not work
Start date:
2008-06-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Files
Updated by Steffen Müller about 14 years ago
Appended patches fix the issue for 4.2, 4.3 and trunk without breaking the cache.
Updated by Andreas Otto † about 14 years ago
Committed to:
Trunk, revision 7123
4-3, revision 7124
Actions