Project

General

Profile

Actions

Feature #35891

closed

Possibility to add icons in addItems()

Added by Philipp Mueller about 12 years ago. Updated over 5 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 #1

Updated by Steffen Ritter almost 12 years ago

  • Target version deleted (4.7.0)
Actions #2

Updated by Steffen Ritter almost 12 years ago

  • TYPO3 Version changed from 4.7 to 6.0
Actions #3

Updated by Gerrit Code Review almost 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22067

Actions #4

Updated by Christoph Dörfel over 10 years ago

Since icons are now included for ".addItems", shouldn't there be a ".altIcons" setting, similar to ".altLabels"?

Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22067

Actions #6

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/22067

Actions #7

Updated by Gerrit Code Review over 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/22067

Actions #8

Updated by Gerrit Code Review over 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/22067

Actions #9

Updated by Benni Mack over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 90 to 100
Actions #10

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF