-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_localconf.php
58 lines (53 loc) · 1.87 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* campus_events_frontend comes with ABSOLUTELY NO WARRANTY
* See the GNU GeneralPublic License for more details.
* https://www.gnu.org/licenses/gpl-2.0
*
* Copyright (C) 2019 Brain Appeal GmbH
*
* @copyright 2019 Brain Appeal GmbH (www.brain-appeal.com)
* @license GPL-2 (www.gnu.org/licenses/gpl-2.0)
* @link https://www.campus-events.com/
*/
defined('TYPO3') or die();
call_user_func(
static function()
{
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CampusEventsFrontend',
'Event',
[
\BrainAppeal\CampusEventsFrontend\Controller\EventController::class => 'list, show'
]/*,
// non-cacheable actions
[
\BrainAppeal\CampusEventsFrontend\Controller\EventController::class => 'list'
]*/
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CampusEventsFrontend',
'EventList',
[
\BrainAppeal\CampusEventsFrontend\Controller\EventController::class => 'list'
],
[],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'CampusEventsFrontend',
'EventShow',
[
\BrainAppeal\CampusEventsFrontend\Controller\EventController::class => 'show'
],
[],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
plugin {
tx_campuseventsfrontend_eventlist.view.pluginNamespace = tx_campuseventsfrontend_event
tx_campuseventsfrontend_eventshow.view.pluginNamespace = tx_campuseventsfrontend_event
}
'));
}
);