[BUGFIX] Prematurely end data array processing on invalid item
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_tables.php
1 <?php
2
3 defined('TYPO3') or die();
4
5 /**
6 * $GLOBALS['PAGES_TYPES'] defines the various types of pages (field: doktype) the system
7 * can handle and what restrictions may apply to them.
8 * Here you can define which tables are allowed on a certain pagetype (doktype)
9 * NOTE: The 'default' entry in the $GLOBALS['PAGES_TYPES'] array is the 'base' for all
10 * types, and for every type the entries simply overrides the entries in the 'default' type!
11 */
12 $GLOBALS['PAGES_TYPES'] = [
13 (string)\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_BE_USER_SECTION => [
14 'allowedTables' => '*'
15 ],
16 (string)\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_SYSFOLDER => [
17 // Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
18 // In CMS context it's NOT a viewable page. Can contain any element.
19 'allowedTables' => '*'
20 ],
21 (string)\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_RECYCLER => [
22 // Doktype 255 is a recycle-bin.
23 'allowedTables' => '*'
24 ],
25 'default' => [
26 'allowedTables' => 'pages,sys_category,sys_file_reference,sys_file_collection',
27 'onlyAllowedTables' => false
28 ],
29 ];
30
31 /**
32 * $TBE_MODULES contains the structure of the backend modules as they are
33 * arranged in main- and sub-modules. Every entry in this array represents a
34 * menu item on either first (key) or second level (value from list) in the
35 * left menu in the TYPO3 backend
36 * For information about adding modules to TYPO3 you should consult the
37 * documentation found in "Inside TYPO3"
38 */
39 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
40 'web',
41 '',
42 '',
43 null,
44 [
45 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_web.xlf',
46 'name' => 'web',
47 'iconIdentifier' => 'modulegroup-web'
48 ]
49 );
50 // workaround to add web->list by default
51 $GLOBALS['TBE_MODULES']['web'] = 'list';
52
53 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
54 'site',
55 '',
56 '',
57 null,
58 [
59 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_site.xlf',
60 'name' => 'site',
61 'workspaces' => 'online',
62 'iconIdentifier' => 'modulegroup-site',
63 ]
64 );
65 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
66 'file',
67 '',
68 '',
69 null,
70 [
71 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_file.xlf',
72 'name' => 'file',
73 'workspaces' => 'online,custom',
74 'iconIdentifier' => 'modulegroup-file'
75 ]
76 );
77 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
78 'user',
79 '',
80 '',
81 null,
82 [
83 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_usertools.xlf',
84 'name' => 'user',
85 'iconIdentifier' => 'modulegroup-user'
86 ]
87 );
88 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
89 'tools',
90 '',
91 '',
92 null,
93 [
94 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_admintools.xlf',
95 'name' => 'tools',
96 'iconIdentifier' => 'modulegroup-tools'
97 ]
98 );
99 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
100 'system',
101 '',
102 '',
103 null,
104 [
105 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_system.xlf',
106 'name' => 'system',
107 'iconIdentifier' => 'modulegroup-system'
108 ]
109 );
110 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
111 'help',
112 '',
113 '',
114 null,
115 [
116 'labels' => 'LLL:EXT:core/Resources/Private/Language/locallang_mod_help.xlf',
117 'name' => 'help',
118 'iconIdentifier' => 'modulegroup-help'
119 ]
120 );
121
122 // Register the page tree core navigation component
123 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'TYPO3/CMS/Backend/PageTree/PageTreeElement');
124
125 /**
126 * $TBE_STYLES configures backend styles and colors; Basically this contains
127 * all the values that can be used to create new skins for TYPO3.
128 * For information about making skins to TYPO3 you should consult the
129 * documentation found in "Inside TYPO3"
130 */
131 $GLOBALS['TBE_STYLES'] = [];
132
133 /**
134 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
135 * For information about using the CSH API in TYPO3 you should consult the
136 * documentation found in "Inside TYPO3"
137 */
138 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:core/Resources/Private/Language/locallang_csh_pages.xlf');
139 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:core/Resources/Private/Language/locallang_csh_be_users.xlf');
140 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:core/Resources/Private/Language/locallang_csh_be_groups.xlf');
141 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:core/Resources/Private/Language/locallang_csh_sysfilem.xlf');
142 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_file_reference', 'EXT:core/Resources/Private/Language/locallang_csh_sysfilereference.xlf');
143 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_file_storage', 'EXT:core/Resources/Private/Language/locallang_csh_sysfilestorage.xlf');
144 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:core/Resources/Private/Language/locallang_csh_syslang.xlf');
145 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:core/Resources/Private/Language/locallang_csh_sysnews.xlf');
146 // General Core
147 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:core/Resources/Private/Language/locallang_csh_corebe.xlf');