forked from czenker/cz_simple_cal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
61 lines (50 loc) · 2.25 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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Tx.CzSimpleCal',
'Pi1',
[
'EventIndex' => 'list,countEvents,show',
'Event' => 'show',
'Category' => 'show',
],
[]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Tx.CzSimpleCal',
'Pi2',
['EventAdministration' => 'list,new,create,edit,update,delete'],
['EventAdministration' => 'list,new,create,edit,update,delete']
);
$locallangModPrefix = 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx\\CzSimpleCal\\Scheduler\\IndexTask'] = [
'extension' => $_EXTKEY,
'title' => $locallangModPrefix . 'tx_czsimplecal_scheduler_index.label',
'description' => $locallangModPrefix . 'tx_czsimplecal_scheduler_index.description',
'additionalFields' => 'Tx\\CzSimpleCal\\Scheduler\\IndexTask',
];
unset($locallangModPrefix);
// Add default pageTSConfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
file_get_contents(
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(
'cz_simple_cal'
) . 'Configuration/TSconfig/default.txt'
)
);
// Register the hook that filters inline addresses from the record list.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable'][]
= 'Tx\\CzSimpleCal\\Hook\\DatabaseRecordListHook';
// Hook into the post storing process to update the index of recurring events
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][]
= 'Tx\\CzSimpleCal\\Hook\\DataHandlerHook';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][]
= 'Tx\\CzSimpleCal\\Hook\\DataHandlerHook';
$formDataGroupConfig = &$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup'];
$formDataGroupConfig['tcaDatabaseRecord'][\Tx\CzSimpleCal\Hook\BackendFormEnhancements::class] = [
'depends' => [\TYPO3\CMS\Backend\Form\FormDataProvider\InitializeProcessedTca::class],
'before' => [\TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsProcessFieldLabels::class],
];
unset($formDataGroupConfig);