forked from TYPO3-CMS/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_tables.php
More file actions
152 lines (143 loc) · 5.29 KB
/
ext_tables.php
File metadata and controls
152 lines (143 loc) · 5.29 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
declare(strict_types=1);
use TYPO3\CMS\Core\Domain\Repository\PageRepository;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
defined('TYPO3') or die();
/**
* $GLOBALS['PAGES_TYPES'] defines the various types of pages (field: doktype) the system
* can handle and what restrictions may apply to them.
* Here you can define which tables are allowed on a certain pagetype (doktype)
* NOTE: The 'default' entry in the $GLOBALS['PAGES_TYPES'] array is the 'base' for all
* types, and for every type the entries simply overrides the entries in the 'default' type!
*/
$GLOBALS['PAGES_TYPES'] = [
(string)PageRepository::DOKTYPE_BE_USER_SECTION => [
'allowedTables' => '*',
],
(string)PageRepository::DOKTYPE_SYSFOLDER => [
// Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
// In CMS context it's NOT a viewable page. Can contain any element.
'allowedTables' => '*',
],
(string)PageRepository::DOKTYPE_RECYCLER => [
// Doktype 255 is a recycle-bin.
'allowedTables' => '*',
],
'default' => [
'allowedTables' => 'pages,sys_category,sys_file_reference,sys_file_collection',
'onlyAllowedTables' => false,
],
];
/**
* $TBE_MODULES contains the structure of the backend modules as they are
* arranged in main- and sub-modules. Every entry in this array represents a
* menu item on either first (key) or second level (value from list) in the
* left menu in the TYPO3 backend
* For information about adding modules to TYPO3 you should consult the
* documentation found in "Inside TYPO3"
*/
ExtensionManagementUtility::addModule(
'web',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web.xlf',
'name' => 'web',
'iconIdentifier' => 'modulegroup-web',
]
);
// workaround to add web->list by default
$GLOBALS['TBE_MODULES']['web'] = 'list';
ExtensionManagementUtility::addModule(
'site',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_site.xlf',
'name' => 'site',
'workspaces' => 'online',
'iconIdentifier' => 'modulegroup-site',
]
);
ExtensionManagementUtility::addModule(
'file',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_file.xlf',
'name' => 'file',
'workspaces' => 'online,custom',
'iconIdentifier' => 'modulegroup-file',
]
);
ExtensionManagementUtility::addModule(
'user',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_usertools.xlf',
'name' => 'user',
'iconIdentifier' => 'modulegroup-user',
]
);
ExtensionManagementUtility::addModule(
'tools',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_admintools.xlf',
'name' => 'tools',
'iconIdentifier' => 'modulegroup-tools',
]
);
ExtensionManagementUtility::addModule(
'system',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_system.xlf',
'name' => 'system',
'iconIdentifier' => 'modulegroup-system',
]
);
ExtensionManagementUtility::addModule(
'help',
'',
'',
null,
[
'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_help.xlf',
'name' => 'help',
'iconIdentifier' => 'modulegroup-help',
]
);
// Register the page tree core navigation component
ExtensionManagementUtility::addCoreNavigationComponent('web', 'TYPO3/CMS/Backend/PageTree/PageTreeElement');
/**
* $TBE_STYLES configures backend styles and colors; Basically this contains
* all the values that can be used to create new skins for TYPO3.
* For information about making skins to TYPO3 you should consult the
* documentation found in "Inside TYPO3"
*/
$GLOBALS['TBE_STYLES'] = [];
/**
* Setting up $TCA_DESCR - Context Sensitive Help (CSH)
* For information about using the CSH API in TYPO3 you should consult the
* documentation found in "Inside TYPO3"
*/
ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:core/Resources/Private/Language/locallang_csh_pages.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:core/Resources/Private/Language/locallang_csh_be_users.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:core/Resources/Private/Language/locallang_csh_be_groups.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:core/Resources/Private/Language/locallang_csh_sysfilem.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('sys_file_reference', 'EXT:core/Resources/Private/Language/locallang_csh_sysfilereference.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('sys_file_storage', 'EXT:core/Resources/Private/Language/locallang_csh_sysfilestorage.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:core/Resources/Private/Language/locallang_csh_syslang.xlf');
ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:core/Resources/Private/Language/locallang_csh_sysnews.xlf');
// General Core
ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:core/Resources/Private/Language/locallang_csh_corebe.xlf');