Bug #78747
closedStory #69617: FormEngine bugs
pageTsConfig addItems still broken
100%
Description
After patch https://review.typo3.org/#/c/50565/10 the pageTsConfig option to add items with icon is now broken for non selectTree render types since the svg of the icon is inlined directly and the non-tree render elements can't deal with that.
example:
TCEFORM.pages.module.addItems.12345 = staticFromPageTs
TCEFORM.pages.module.addItems.12345.icon = actions-close
maybe it's time to make the renderType="selectTree" an own type, we could review the other addItems processors along the way and kick those that don't work with trees anyway ... would mean we need an additional migration, too.
separating that would have the additional benefit that the isTargetRenderType() method could fall, which is a hack in the first place.
if we separate the tree from other select types, we could additionally inline some of the methods that are currently within the abstract into the TcaSelectItems data provider (which would make the patch a breaking patch for people who extend from that class to implement own select types).
For scenarious where selectTree goes to mm tables (like eg. pages.categories), this addItem is also a bit ... well, it is possible to add mm row entries that have no child-child counterpart. this should be documented.
Updated by Christian Kuhn almost 8 years ago
- Target version changed from 8.6 to 8 LTS
Updated by Gerrit Code Review almost 8 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/51766
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51766
Updated by Christian Kuhn over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3ca7d0bb1c2041c521626ecefb96044deffcf895.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed