[TYPO3-core] RFC #8597: Defining alternative icons with specConfs.[pid].pageIcon does not work in indexed_search
Steffen Müller
typo3 at t3node.com
Wed Feb 3 11:05:25 CET 2010
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.
--
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
Microblog: http://twitter.com/t3node
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8597-4_3-trunk.diff
Type: text/x-diff
Size: 2610 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100203/6a68f397/attachment-0001.diff>
More information about the TYPO3-team-core
mailing list