This repository has been archived by the owner on May 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
ext_tables.php
59 lines (54 loc) · 1.53 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
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
/**
* 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,userLogout'
],
[
'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'
);
/**
* Flexform
*/
$pluginSignature = str_replace('_', '', 'femanager') . '_pi1';
$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
*/
$TCA['tt_content']['types']['list']['subtypes_excludelist']['femanager_pi1'] = 'select_key';