Project

General

Profile

Actions

Bug #18900

closed

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

Added by M. Stichweh almost 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
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

8597-4_3-trunk.diff (2.55 KB) 8597-4_3-trunk.diff Administrator Admin, 2010-02-03 10:40
8597-4_2.diff (2.55 KB) 8597-4_2.diff Administrator Admin, 2010-02-03 10:41
search_result.png (37.6 KB) search_result.png Administrator Admin, 2010-02-03 10:49
Actions #1

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.

Actions #2

Updated by Andreas Otto † about 14 years ago

Committed to:

Trunk, revision 7123
4-3, revision 7124

Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF