forked from in2code-de/femanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
70 lines (62 loc) · 2.11 KB
/
ext_tables.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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(function () {
/**
* FE Plugin
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('femanager', 'Pi1', 'FE_Manager');
/**
* Include Backend Module
*/
if (!\In2code\Femanager\Utility\ConfigurationUtility::isDisableModuleActive() &&
!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'In2code.femanager',
'web',
'm1',
'',
[
'UserBackend' => 'list,confirmation,userLogout,confirmUser,refuseUser,listOpenUserConfirmations,resendUserConfirmationRequest,unsubscribe'
],
[
'access' => 'user,group',
'icon' => 'EXT:femanager/ext_icon.svg',
'labels' => 'LLL:EXT:femanager/Resources/Private/Language/locallang_mod.xlf',
]
);
}
/**
* Static TypoScript
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'femanager',
'Configuration/TypoScript/Main',
'Main Settings'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'femanager',
'Configuration/TypoScript/Layout',
'Add Layout CSS'
);
/**
* Add user TSConfig
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:femanager/Configuration/UserTsConfig/BackendModule.typoscript">'
);
/**
* Flexform
*/
$pluginSignature = str_replace('_', '', 'femanager') . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
$pluginSignature,
'FILE:EXT:femanager/Configuration/FlexForms/FlexFormPi1.xml'
);
/**
* Disable non needed fields in tt_content
*/
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['femanager_pi1'] = 'select_key';
});