Project

General

Profile

Actions

Feature #35891

closed

Possibility to add icons in addItems()

Added by Philipp Mueller over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2012-04-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

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 = <label>
}

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 = <label>|<icon>
}

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


Files

IconInAddItems.patch (1.24 KB) IconInAddItems.patch Philipp Mueller, 2012-04-12 10:44
Actions

Also available in: Atom PDF