Bug #78747
Updated by Christian Kuhn about 8 years ago
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 render element can't deal with that.
furthermore, the documented example is rather bogus.
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).
side note: addItems does NOT work with mm tables ... that should be documented, too.