diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index 3d6e14c..d0adfb1 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -13,23 +13,12 @@ defined('TYPO3') || die(); ]); ExtensionUtility::registerPlugin( - $extKey, - $extKey, + 'Watchlist', + 'Watchlist', $languagePath . 'title', 'EXT:' . $extKey . '/Resources/Public/Icons/Extension.svg' ); - \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem( - $table, - 'CType', - [ - $languagePath . 'title', - $contentType, - 'content-bullets', - 'special', - ] - ); - \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$table], [ 'ctrl' => [ 'typeicon_classes' => [ diff --git a/README.rst b/README.rst index 70a6e24..a61d51e 100644 --- a/README.rst +++ b/README.rst @@ -151,3 +151,17 @@ Example A concrete example can be found within ``Tests/Fixtures/FrontendRendering.typoscript``. This example includes the provided JavaScript file as well as some custom CSS and Markup. The content element is not necessary. + +Changelog +========= + +v1.0.1 +------ + +* Fix broken registration of plugin as content element within TCA. + We used different cases for ExtensionName and PluginName while configuring and registering a plugin. + That lead to the issue that the plugin was also registered as list_type aka "Insert Plugin". + But there was no rendering definition. We manually added the CType registration. + + This is now fixed by properly calling the registerPlugin() method. That way extbase + can find the CType definition and will add it as CType instead of list_type.