2018-05-26 20:46:55 +02:00
|
|
|
<?php
|
2020-10-14 11:06:07 +02:00
|
|
|
|
2022-08-28 12:22:38 +02:00
|
|
|
defined('TYPO3') || die();
|
2018-05-26 20:46:55 +02:00
|
|
|
|
2023-05-03 12:56:50 +02:00
|
|
|
call_user_func(
|
|
|
|
static function (): void {
|
|
|
|
// This makes the plugin selectable in the BE.
|
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
|
|
// extension name, matching the PHP namespaces (but without the vendor)
|
|
|
|
'Tea',
|
|
|
|
// arbitrary, but unique plugin name (not visible in the BE)
|
|
|
|
'TeaIndex',
|
|
|
|
// plugin title, as visible in the drop-down in the BE
|
|
|
|
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_index',
|
|
|
|
// the icon visible in the drop-down in the BE
|
|
|
|
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
|
|
|
);
|
2018-05-26 20:46:55 +02:00
|
|
|
|
2023-05-03 12:56:50 +02:00
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
|
|
'Tea',
|
|
|
|
'TeaShow',
|
|
|
|
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_show',
|
|
|
|
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
|
|
|
);
|
2022-09-27 11:53:43 +02:00
|
|
|
|
2023-06-22 13:17:51 +02:00
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
|
|
'Tea',
|
|
|
|
'TeaFrontEndEditor',
|
|
|
|
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_frontend_editor',
|
|
|
|
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
|
|
|
);
|
|
|
|
|
2024-05-07 16:23:04 +02:00
|
|
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
|
|
|
'Tea',
|
|
|
|
'TeaRating',
|
|
|
|
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_rating',
|
|
|
|
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
|
|
|
);
|
|
|
|
|
2023-05-03 12:56:50 +02:00
|
|
|
// This removes the default controls from the plugin.
|
2023-12-10 01:07:37 +01:00
|
|
|
$controlsToRemove = 'recursive,pages';
|
2023-05-03 12:56:50 +02:00
|
|
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teaindex'] = $controlsToRemove;
|
|
|
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teashow'] = $controlsToRemove;
|
2023-06-22 13:17:51 +02:00
|
|
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teafrontendeditor'] = $controlsToRemove;
|
2024-05-07 16:23:04 +02:00
|
|
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_tearating'] = $controlsToRemove;
|
2023-05-03 12:56:50 +02:00
|
|
|
}
|
|
|
|
);
|