[FEATURE] FormEngine: Possibility to add icons via pageTSconfig 67/22067/6
authorBenjamin Mack <benni@typo3.org>
Sat, 6 Jul 2013 20:48:01 +0000 (22:48 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 10 Dec 2014 20:16:07 +0000 (21:16 +0100)
commit0528f4fd5e00e20c4d8c8a69c796d1fd7a34b530
treee5eebb5ebc6a3ab79396e76cf904cd58ac5b8ed8
parent437b3baf0727582fccafd2fd9436099d14391f7d
[FEATURE] FormEngine: Possibility to add icons via pageTSconfig

If someone adds a new value/label pair for a select field in
TCEforms/FormEngine, it is not possible to also add an icon to
the new option.
Alternatively, existing values can be changed through the new
"altIcons" property that acts like the "altLabels" property.

The patch adds another subelement for TSconfig to also add an
icon, as well as a new property.

TCEFORM.pages.doktype.addItems {
13 = My Label
13.icon = sysext/t3skin/icons/gfx/i/pages.gif
}
TCEFORM.pages.doktype.altIcons {
123 = EXT:myext/icon.gif
}

The icon path must be relative to the typo3/ directory.

Resolves: #35891
Releases: master
Documentation: #49752
Change-Id: Ic835b1fe350144bc3498eab9a19857e3f558088d
Reviewed-on: http://review.typo3.org/22067
Reviewed-by: Alessandro Bellafronte <alessandro@4eyes.ch>
Reviewed-by: Christoph Dörfel <christoph.doerfel@gmail.com>
Reviewed-by: Michel Georgy <michel@4eyes.ch>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Form/Element/InlineElement.php
typo3/sysext/backend/Classes/Form/Element/SelectElement.php
typo3/sysext/backend/Classes/Form/FlexFormsHelper.php
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/core/Documentation/Changelog/master/Feature-35891-AddTCAItemsWithIconsViaPageTSConfig.rst [new file with mode: 0644]
typo3/sysext/t3editor/res/jslib/parse_typoscript/tokenizetyposcript.js