events/ext_localconf.php

53 lines
1.6 KiB
PHP
Raw Normal View History

<?php
declare(strict_types=1);
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use WerkraumMedia\Events\Controller\DateController;
use WerkraumMedia\Events\Controller\EventController;
defined('TYPO3') || die('Access denied.');
2021-06-14 16:08:43 +02:00
call_user_func(function () {
ExtensionUtility::configurePlugin(
2021-06-14 16:08:43 +02:00
'Events',
'DateSearch',
[DateController::class => 'search'],
[DateController::class => 'search'],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
2021-06-14 16:08:43 +02:00
);
ExtensionUtility::configurePlugin(
2021-06-14 16:08:43 +02:00
'Events',
'DateList',
[DateController::class => 'list'],
[DateController::class => 'list'],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
2021-06-14 16:08:43 +02:00
);
ExtensionUtility::configurePlugin(
2021-06-14 16:08:43 +02:00
'Events',
'DateShow',
[DateController::class => 'show'],
[DateController::class => 'show'],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
2021-06-14 16:08:43 +02:00
);
ExtensionUtility::configurePlugin(
2021-06-14 16:08:43 +02:00
'Events',
'Selected',
[EventController::class => 'list'],
[],
ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
2021-06-14 16:08:43 +02:00
);
if (
isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|| is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
) {
2021-06-14 16:08:43 +02:00
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
}
2022-11-22 12:58:36 +01:00
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = '^events_search';
2021-06-14 16:08:43 +02:00
});