Project

General

Profile

Actions

Bug #20149

closed

Support thumbnails for select using icons in TCEforms

Added by Steffen Kamper over 15 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-03-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

10645.diff (1.53 KB) 10645.diff Administrator Admin, 2009-03-10 08:44
Actions

Also available in: Atom PDF