Skip to content

Commit cf71414

Browse files
Configure icon of custom CE as Typeicon (#6146)
Currently, the icon is only added to the select item and is therefore only visible when editing the record. In backend previews, however, TYPO3 reverts to the default icon. By additionally registering the same icon in the `typeicon_classes`, the icon is also used in BE previews.
1 parent 8404db0 commit cf71414

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Documentation/ApiOverview/ContentElements/_AddingYourOwnContentElements/_tt_content_icon.diff

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
'textmedia',
1111
'after',
1212
);
13+
+$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'][$key] = 'examples-icon-basic';

0 commit comments

Comments
 (0)