Skip to content

Commit 80894b2

Browse files
committed
[TASK] Register codeblock icon as typeicon for the CType
1 parent f2c886e commit 80894b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Configuration/TCA/Overrides/tt_content.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
'after'
1010
);
1111

12+
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['codeblock'] = 'content-codeblock';
13+
1214
$GLOBALS['TCA']['tt_content']['types']['codeblock'] = [
1315
'showitem' => '
1416
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,

ext_localconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
defined('TYPO3_MODE') or die();
2+
defined('TYPO3') or die();
33

44
call_user_func(static function () {
55
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['codeblock'] =

0 commit comments

Comments
 (0)