[TYPO3-core] RFC #8597: Defining alternative icons with specConfs.[pid].pageIcon does not work in indexed_search

Susanne Moog typo3 at susanne-moog.de
Tue Mar 2 14:54:52 CET 2010


Hi Steffen,

Steffen Müller wrote:
> Hi,
> 
> this is a SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references: http://bugs.typo3.org/view.php?id=8597
> 
> Branches: Trunk, 4_3
> 
> Problem:
> You can configure different icons for pages in the search results of
> indexed_search (TypoScript specConfs). This does not work because the
> icon cache in indexed_search does not fully respect these settings.
> The cache only respects page type (0) but not page id. The result is
> that the icon of the first item will be used for all items ignoring any
> other settings by specConfs.[pid].pageIcon.
> 
> Solution:
> - Make pid of specConfs available in icon cache.
> - Use compount key of item type and pid for icon cache.
> 
> Steps to reproduce:
> 1) Install indexed_search extension with plugin
> 2) Add two pages to your pagetree (page id 1 with title=hello and page
> id 2 with title=world)
> 3) Add this TypoScript to your template:
>   plugin.tx_indexedsearch.specConfs {
>     1.pageIcon = IMAGE
>     1.pageIcon.file = typo3/sysext/indexed_search/pi/res/pages.gif
>     2.pageIcon = IMAGE
>     2.pageIcon.file = typo3/sysext/indexed_search/pi/res/pdf.gif
>  }
> 4) Trigger caching and indexing of the pages
> 5) Search for hello world
> 
> After applying the patch you should see different icons for both results.

+1 by reading and testing.

One remark: Could we rename variables such as "$it"?

Best regards,

Susanne


More information about the TYPO3-team-core mailing list