Bug #20149
closedSupport thumbnails for select using icons in TCEforms
0%
Description
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.
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 ; if set, icons are thumbnailed
thumbSize: if set this size is used, if it's ommitted the default thumbsize (56x56) is used
(issue imported from #M10645)
Files