Feature #73227
closedStory #69712: Further FormEngine development
Possibility to override Icon
100%
Description
According to the Feature #35891
it would be nice to override an existing icon.
so e.g. this should work for imageorient type = 26 which is Besides Text, Left
TCEFORM.tt_content.imageorient {
26.altIcons = ../fileadmin/templates/html/images/ce_team.png
}
Thx
Stefan
Updated by Wouter Wolters almost 9 years ago
- Status changed from New to Needs Feedback
Which TYPO3 version are you using?
According to the feature request you reference this should already be possible
Updated by stefan schreck almost 9 years ago
Hi
Thanks for the feedback.
I am using 7.6.2
I know that the feature exists.
And it works for newly added Items.
But it doesn't override existing ones.
Even if I remove 26 and re-add it again it won't work at all.
imageorient {
removeItems = 1,2,9,10,25,0,8,17,18
altIcons {
### DOESN'T WORK
26 = ../fileadmin/templates/html/images/ce_team.png
}
addItems {
### WORKS
100 = LLL:fileadmin/templates/Language/locallang.xlf:backend.Mitarbeiter
100.icon = ../fileadmin/templates/html/images/ce_team.png
}
}
Best + Thx
Updated by Christian Kuhn over 8 years ago
- Parent task changed from #69617 to #69712
Updated by Riccardo De Contardi over 8 years ago
- Status changed from Needs Feedback to New
I performed a test with the latest 8.2 master; as far as I can see:
TCEFORM.tt_content.imageorient { addItems.100 = Value addItems.100.icon = fileadmin/icon.png }
works, while
TCEFORM.tt_content.imageorient { altIcons.26 = fileadmin/icon.png }
does not work.
Further notes:
- The online documentation https://docs.typo3.org/typo3cms/TSconfigReference/latest/PageTsconfig/TCEform/Index.html does not mention altIcons
- the changelog .rst file (/typo3/sysext/core/Documentation/Changelog/master/Feature-35891-AddTCAItemsWithIconsViaPageTSConfig.rst) reads as example:
TCEFORM.pages.doktype.addItems { 13 = My Label 13.icon = EXT:t3skin/icons/gfx/i/pages.gif } TCEFORM.pages.doktype.altIcons { 123 = EXT:myext/icon.gif }
But the altIcons property only works on the following condition:
"config type=select, maxitems > 1, renderType=selectMultipleSideBySide set"
(thanks to W.Wolters and S.Moog that helped me digging the code)
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68776
Updated by Gerrit Code Review over 3 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68814
Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68814
Updated by Oliver Bartsch over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 881906ee61817ded8f942a34636b55bfd9c87562.