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

Steffen Kamper info at sk-typo3.de
Fri Mar 20 11:44:02 CET 2009


Hi,

REMINDER

vg Steffen

Steffen Kamper schrieb:
> 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
> 


More information about the TYPO3-team-core mailing list