Issue Feature Closed

#35891Possibility to add icons in addItems()

Philipp Mueller 04/12/12, 10:44 updated 10/02/18, 12:42

Description

Hello

At the time it’s not possible to add an icon in a FlexForm-Selectfield by TSconfig.

In the current version we use this TSconfig to add an item in flexform:

_Syntax:_
@TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myselector.addItems {
mynewitem =

_For example:_
@TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myselector.addItems {
mynewitem = LLL:EXT:myext/locallang_ff.xml:mynewitemlabel
}
@

I suggest that we extend the syntax like this:

_Syntax:_
@TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myselector.addItems {
mynewitem =

_For example:_
@TCEFORM.tt_content.pi_flexform.myext_pi1.sDEF.myselector.addItems {
mynewitem = LLL:EXT:myext/locallang_ff.xml:mynewitemlabel|EXT:myext/myicon.png
}
@

I have attached a patch to extend t3lib_TCEforms::addItems().

Best Regards
Philipp

Reviews 1