2019-07-18 13:44:19 +02:00
|
|
|
<?php
|
|
|
|
|
2023-11-27 10:04:42 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
|
|
|
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
|
|
|
|
|
2021-12-13 09:09:13 +01:00
|
|
|
(function (string $extKey, string $table) {
|
2019-11-11 12:43:50 +01:00
|
|
|
/* Search Plugin */
|
2024-08-19 15:22:56 +02:00
|
|
|
$pluginSignature = ExtensionUtility::registerPlugin(
|
2021-01-07 08:47:15 +01:00
|
|
|
'Events',
|
2019-11-11 12:43:50 +01:00
|
|
|
'DateSearch',
|
2019-11-13 10:46:21 +01:00
|
|
|
'Events: Date Search',
|
2024-11-04 11:31:21 +01:00
|
|
|
'events-plugin'
|
2019-11-11 12:43:50 +01:00
|
|
|
);
|
2024-08-19 15:22:56 +02:00
|
|
|
ExtensionManagementUtility::addToAllTCAtypes($table, 'pi_flexform', $pluginSignature, 'after:subheader');
|
2023-11-27 10:04:42 +01:00
|
|
|
ExtensionManagementUtility::addPiFlexFormValue(
|
2024-08-19 15:22:56 +02:00
|
|
|
'*',
|
|
|
|
'FILE:EXT:events/Configuration/FlexForms/DateSearch.xml',
|
|
|
|
$pluginSignature,
|
2019-11-11 12:43:50 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
/* Date List Plugin */
|
2024-08-19 15:22:56 +02:00
|
|
|
$pluginSignature = ExtensionUtility::registerPlugin(
|
2021-01-07 08:47:15 +01:00
|
|
|
'Events',
|
2019-11-11 12:43:50 +01:00
|
|
|
'DateList',
|
2019-11-13 10:46:21 +01:00
|
|
|
'Events: Date List',
|
2024-11-04 11:31:21 +01:00
|
|
|
'events-plugin'
|
2019-11-11 12:43:50 +01:00
|
|
|
);
|
2024-08-19 15:22:56 +02:00
|
|
|
ExtensionManagementUtility::addToAllTCAtypes($table, 'pi_flexform', $pluginSignature, 'after:subheader');
|
2023-11-27 10:04:42 +01:00
|
|
|
ExtensionManagementUtility::addPiFlexFormValue(
|
2024-08-19 15:22:56 +02:00
|
|
|
'*',
|
|
|
|
'FILE:EXT:events/Configuration/FlexForms/DateList.xml',
|
|
|
|
$pluginSignature,
|
2019-11-11 12:43:50 +01:00
|
|
|
);
|
|
|
|
|
2019-11-13 10:46:21 +01:00
|
|
|
/* Date Show Plugin */
|
2024-08-19 15:22:56 +02:00
|
|
|
$pluginSignature = ExtensionUtility::registerPlugin(
|
2021-01-07 08:47:15 +01:00
|
|
|
'Events',
|
2019-11-13 10:46:21 +01:00
|
|
|
'DateShow',
|
|
|
|
'Events: Date Show',
|
2024-11-04 11:31:21 +01:00
|
|
|
'events-plugin'
|
2019-11-13 10:46:21 +01:00
|
|
|
);
|
2024-08-19 15:22:56 +02:00
|
|
|
ExtensionManagementUtility::addToAllTCAtypes($table, 'pi_flexform', $pluginSignature, 'after:subheader');
|
2023-11-27 10:04:42 +01:00
|
|
|
ExtensionManagementUtility::addPiFlexFormValue(
|
2024-08-19 15:22:56 +02:00
|
|
|
'*',
|
|
|
|
'FILE:EXT:events/Configuration/FlexForms/DateShow.xml',
|
2019-11-13 10:46:21 +01:00
|
|
|
'events_dateshow',
|
|
|
|
);
|
|
|
|
|
2021-01-12 14:12:58 +01:00
|
|
|
/* Event Selected Plugin */
|
2024-08-19 15:22:56 +02:00
|
|
|
$pluginSignature = ExtensionUtility::registerPlugin(
|
2021-01-12 14:12:58 +01:00
|
|
|
'Events',
|
|
|
|
'Selected',
|
|
|
|
'Events: Show selected',
|
2024-11-04 11:31:21 +01:00
|
|
|
'events-plugin'
|
2021-01-12 14:12:58 +01:00
|
|
|
);
|
2024-08-19 15:22:56 +02:00
|
|
|
ExtensionManagementUtility::addToAllTCAtypes($table, 'pi_flexform', $pluginSignature, 'after:subheader');
|
2023-11-27 10:04:42 +01:00
|
|
|
ExtensionManagementUtility::addPiFlexFormValue(
|
2024-08-19 15:22:56 +02:00
|
|
|
$pluginSignature,
|
|
|
|
'FILE:EXT:events/Configuration/FlexForms/Selected.xml',
|
2021-01-12 14:12:58 +01:00
|
|
|
'events_selected',
|
|
|
|
);
|
2021-12-13 09:09:13 +01:00
|
|
|
})('events', 'tt_content');
|