events/Configuration/TCA/Overrides/tt_content.php

56 lines
2 KiB
PHP
Raw Permalink Normal View History

<?php
2021-12-13 09:09:13 +01:00
(function (string $extKey, string $table) {
2019-11-11 12:43:50 +01:00
/* Search Plugin */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Events',
2019-11-11 12:43:50 +01:00
'DateSearch',
2019-11-13 10:46:21 +01:00
'Events: Date Search',
2021-02-11 12:05:02 +01:00
'EXT:events/Resources/Public/Icons/Extension.svg'
2019-11-11 12:43:50 +01:00
);
2021-12-13 09:09:13 +01:00
$GLOBALS['TCA'][$table]['types']['list']['subtypes_addlist']['events_datesearch'] = 'pi_flexform';
2019-11-11 12:43:50 +01:00
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'events_datesearch',
2019-11-13 10:46:21 +01:00
'FILE:EXT:events/Configuration/FlexForms/DateSearch.xml'
2019-11-11 12:43:50 +01:00
);
/* Date List Plugin */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Events',
2019-11-11 12:43:50 +01:00
'DateList',
2019-11-13 10:46:21 +01:00
'Events: Date List',
2021-02-11 12:05:02 +01:00
'EXT:events/Resources/Public/Icons/Extension.svg'
2019-11-11 12:43:50 +01:00
);
2021-12-13 09:09:13 +01:00
$GLOBALS['TCA'][$table]['types']['list']['subtypes_addlist']['events_datelist'] = 'pi_flexform';
2019-11-11 12:43:50 +01:00
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'events_datelist',
'FILE:EXT:events/Configuration/FlexForms/DateList.xml'
);
2019-11-13 10:46:21 +01:00
/* Date Show Plugin */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Events',
2019-11-13 10:46:21 +01:00
'DateShow',
'Events: Date Show',
2021-02-11 12:05:02 +01:00
'EXT:events/Resources/Public/Icons/Extension.svg'
2019-11-13 10:46:21 +01:00
);
2021-12-13 09:09:13 +01:00
$GLOBALS['TCA'][$table]['types']['list']['subtypes_addlist']['events_dateshow'] = 'pi_flexform';
2019-11-13 10:46:21 +01:00
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'events_dateshow',
'FILE:EXT:events/Configuration/FlexForms/DateShow.xml'
);
/* Event Selected Plugin */
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Events',
'Selected',
'Events: Show selected',
2021-02-11 12:05:02 +01:00
'EXT:events/Resources/Public/Icons/Extension.svg'
);
2021-12-13 09:09:13 +01:00
$GLOBALS['TCA'][$table]['types']['list']['subtypes_addlist']['events_selected'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'events_selected',
'FILE:EXT:events/Configuration/FlexForms/Selected.xml'
);
2021-12-13 09:09:13 +01:00
})('events', 'tt_content');