mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 17:56:12 +01:00
parent
44ce11bde2
commit
b06eb38f9a
1 changed files with 25 additions and 21 deletions
|
@ -2,26 +2,30 @@
|
||||||
|
|
||||||
defined('TYPO3') || die();
|
defined('TYPO3') || die();
|
||||||
|
|
||||||
// This makes the plugin selectable in the BE.
|
call_user_func(
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
static function (): void {
|
||||||
// extension name, matching the PHP namespaces (but without the vendor)
|
// This makes the plugin selectable in the BE.
|
||||||
'Tea',
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||||
// arbitrary, but unique plugin name (not visible in the BE)
|
// extension name, matching the PHP namespaces (but without the vendor)
|
||||||
'TeaIndex',
|
'Tea',
|
||||||
// plugin title, as visible in the drop-down in the BE
|
// arbitrary, but unique plugin name (not visible in the BE)
|
||||||
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_index',
|
'TeaIndex',
|
||||||
// the icon visible in the drop-down in the BE
|
// plugin title, as visible in the drop-down in the BE
|
||||||
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
'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'
|
||||||
|
);
|
||||||
|
|
||||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||||
'Tea',
|
'Tea',
|
||||||
'TeaShow',
|
'TeaShow',
|
||||||
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_show',
|
'LLL:EXT:tea/Resources/Private/Language/locallang.xlf:plugin.tea_show',
|
||||||
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
'EXT:tea/Resources/Public/Icons/Extension.svg'
|
||||||
);
|
);
|
||||||
|
|
||||||
// This removes the default controls from the plugin.
|
// This removes the default controls from the plugin.
|
||||||
$controlsToRemove = 'recursive,select_key,pages';
|
$controlsToRemove = 'recursive,select_key,pages';
|
||||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teaindex'] = $controlsToRemove;
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teaindex'] = $controlsToRemove;
|
||||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teashow'] = $controlsToRemove;
|
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['tea_teashow'] = $controlsToRemove;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
Loading…
Reference in a new issue