[TYPO3-core] RFC: #10645: Support thumbnails for select using icons in TCEforms

Steffen Kamper info at sk-typo3.de
Tue Mar 10 08:47:26 CET 2009


Hi,

This is SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=10645

Branches: trunk

Problem:
In TCA you have the possibility to show icons below the select.
A famous example is TemplaVoilá where you use icons (previewicons) for 
DS-records and TO-records.

These icons are uploaded to the records and displayed in page and 
tt_content to allow user an easy way to select the used template or element.

The drawback is that you have no control about the imagesize of these 
icons, they are drawn 1:1 size.

Solution:
The attached patch introduce new option in config for select, here is an 
example

'config' => Array (
     'type' => 'select',
     'items' => Array (
         Array('',0),
     ),
     'allowNonIdValues' => 1,
     'itemsProcFunc' => 
'tx_templavoila_handleStaticdatastructures->dataSourceItemsProcFunc',
     'size' => 1,
     'minitems' => 0,
     'maxitems' => 1,
     'suppress_icons' => 'IF_VALUE_FALSE',
     'makeThumb' => 1,
     'thumbSize' => '80x80',
)

the new option is:
makeThumb: (boolean) if set, icons are thumbnailed
thumbSize: (string) if set this size is used, if it's ommitted the 
default thumbsize (56x56) is used. Format: [width]x[height]

vg Steffen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10645.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090310/cd634596/attachment-0001.txt 


More information about the TYPO3-team-core mailing list