forked from slub/slub_events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
executable file
·118 lines (104 loc) · 4.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
defined('TYPO3_MODE') || die();
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Slub.SlubEvents',
'Eventlist',
[
\Slub\SlubEvents\Controller\EventController::class => 'list, show, showNotFound, listUpcoming, new, update, create, delete, printCal',
],
// non-cacheable actions
[
\Slub\SlubEvents\Controller\EventController::class => 'new, update, create, delete',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Slub.SlubEvents',
'Eventsubscribe',
[
\Slub\SlubEvents\Controller\SubscriberController::class => 'new, create, delete, eventNotFound, subscriberNotFound',
],
// non-cacheable actions
[
\Slub\SlubEvents\Controller\SubscriberController::class => 'new, create, delete',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Slub.SlubEvents',
'Eventuserpanel',
[
\Slub\SlubEvents\Controller\EventController::class => 'listOwn, show',
\Slub\SlubEvents\Controller\SubscriberController::class => 'list, show',
],
// non-cacheable actions
[
\Slub\SlubEvents\Controller\EventController::class => 'listOwn',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Slub.SlubEvents',
'Eventgeniusbar',
[
\Slub\SlubEvents\Controller\CategoryController::class => 'list, gbList',
],
// non-cacheable actions
[
\Slub\SlubEvents\Controller\CategoryController::class => '',
]
);
/**
* Set storagePid by default to detect not configured page tree sections
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('
plugin.tx_slubevents.persistence.storagePid =
module.tx_slubevents.persistence.storagePid < plugin.tx_slubevents.persistence.storagePid
');
## EXTENSION BUILDER DEFAULTS END TOKEN -
# Everything BEFORE this line is overwritten with the defaults of the extension builder
/***************************************************************
* Backend module
*/
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
Slub\SlubEvents\Slots\HookPreProcessing::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
Slub\SlubEvents\Slots\HookPostProcessing::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] =
Slub\SlubEvents\Slots\HookPostProcessing::class;
$languageDir = 'slub_events/Resources/Private/Language/';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Slub\\SlubEvents\\Task\\CheckeventsTask'] = [
'extension' => 'slub_events',
'title' => 'LLL:EXT:' . $languageDir . 'locallang.xlf:tasks.checkevents.name',
'description' => 'LLL:EXT:' . $languageDir . 'locallang.xlf:tasks.checkevents.description',
'additionalFields' => Slub\SlubEvents\Task\CheckeventsTaskAdditionalFieldProvider::class
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Slub\\SlubEvents\\Task\\StatisticsTask'] = [
'extension' => 'slub_events',
'title' => 'LLL:EXT:' . $languageDir . 'locallang.xlf:tasks.statistics.name',
'description' => 'LLL:EXT:' . $languageDir . 'locallang.xlf:tasks.statistics.description',
'additionalFields' => Slub\SlubEvents\Task\StatisticsTaskAdditionalFieldProvider::class
];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Slub\\SlubEvents\\Task\\CleanUpTask'] = [
'extension' => 'slub_events',
'title' => 'LLL:EXT:' . $languageDir . 'locallang.xlf:tasks.cleanup.name',
'description' => 'LLL:EXT:' . $languageDir . 'locallang.xlf:tasks.cleanup.description',
'additionalFields' => Slub\SlubEvents\Task\CleanUpTaskAdditionalFieldProvider::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1600698292] = [
'nodeName' => 'recurringOptions',
'priority' => 40,
'class' => Slub\SlubEvents\Helper\Form\Element\RecurringOptionsElement::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1600701794] = [
'nodeName' => 'recurringEvents',
'priority' => 40,
'class' => Slub\SlubEvents\Helper\Form\Element\RecurringEventsElement::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1600702566] = [
'nodeName' => 'recurringParent',
'priority' => 40,
'class' => Slub\SlubEvents\Helper\Form\Element\RecurringParentElement::class
];
// register update wizard
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['slubEventsFileLocationUpdater']
= Slub\SlubEvents\Updates\FileLocationUpdater::class;
}