[TASK] Use FlexFormService to convert FAL driver configuration
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 /**
5 * $GLOBALS['PAGES_TYPES'] defines the various types of pages (field: doktype) the system
6 * can handle and what restrictions may apply to them.
7 * Here you can set the icon and especially you can define which tables are
8 * 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'] = array(
13 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
14 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
15 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
16 'type' => 'web',
17 'allowedTables' => '*'
18 ),
19 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
20 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
21 'type' => 'sys'
22 ),
23 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
24 // Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
25 // In CMS context it's NOT a viewable page. Can contain any element.
26 'type' => 'sys',
27 'allowedTables' => '*'
28 ),
29 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
30 // Doktype 255 is a recycle-bin.
31 'type' => 'sys',
32 'allowedTables' => '*'
33 ),
34 'default' => array(
35 'type' => 'web',
36 'allowedTables' => 'pages',
37 'onlyAllowedTables' => '0'
38 ),
39 );
40
41 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category,sys_file_reference,sys_file_collection');
42
43 /** @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry */
44 $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class);
45 $registry->addDriversToTCA();
46
47 /**
48 * $TBE_MODULES contains the structure of the backend modules as they are
49 * arranged in main- and sub-modules. Every entry in this array represents a
50 * menu item on either first (key) or second level (value from list) in the
51 * left menu in the TYPO3 backend
52 * For information about adding modules to TYPO3 you should consult the
53 * documentation found in "Inside TYPO3"
54 */
55 $GLOBALS['TBE_MODULES'] = array(
56 'web' => 'list',
57 'file' => '',
58 'user' => '',
59 'tools' => '',
60 'system' => '',
61 'help' => '',
62 '_configuration' => array(
63 'web' => array(
64 'labels' => array(
65 'll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf'
66 ),
67 'name' => 'web',
68 'iconIdentifier' => 'module-web'
69 ),
70 'file' => array(
71 'labels' => array(
72 'll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf'
73 ),
74 'navigationFrameModule' => 'file_navframe',
75 'name' => 'file',
76 'workspaces' => 'online,custom',
77 'iconIdentifier' => 'module-file'
78 ),
79 'user' => array(
80 'labels' => array(
81 'll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf'
82 ),
83 'name' => 'user',
84 'iconIdentifier' => 'status-user-backend'
85 ),
86 'tools' => array(
87 'labels' => array(
88 'll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf'
89 ),
90 'name' => 'tools',
91 'iconIdentifier' => 'module-tools'
92 ),
93 'system' => array(
94 'labels' => array(
95 'll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf'
96 ),
97 'name' => 'system',
98 'iconIdentifier' => 'module-system'
99 ),
100 'help' => array(
101 'labels' => array(
102 'll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf'
103 ),
104 'name' => 'help',
105 'iconIdentifier' => 'module-help'
106 )
107 )
108 );
109
110
111 // Register the page tree core navigation component
112 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
113
114
115 /**
116 * $TBE_STYLES configures backend styles and colors; Basically this contains
117 * all the values that can be used to create new skins for TYPO3.
118 * For information about making skins to TYPO3 you should consult the
119 * documentation found in "Inside TYPO3"
120 */
121 $GLOBALS['TBE_STYLES'] = array(
122 'skinImg' => array()
123 );
124
125
126 /**
127 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
128 * For information about using the CSH API in TYPO3 you should consult the
129 * documentation found in "Inside TYPO3"
130 */
131 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
132 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
133 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
134 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
135 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
136 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
137 // General Core
138 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
139 // Web > Info
140 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
141 // Web > Func
142 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');
143
144 /**
145 * Backend sprite icon-names
146 */
147 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
148 'actions-document-close',
149 'actions-document-duplicates-select',
150 'actions-document-edit-access',
151 'actions-document-export-csv',
152 'actions-document-export-t3d',
153 'actions-document-history-open',
154 'actions-document-import-t3d',
155 'actions-document-info',
156 'actions-document-localize',
157 'actions-document-move',
158 'actions-document-new',
159 'actions-document-open',
160 'actions-document-open-read-only',
161 'actions-document-paste-after',
162 'actions-document-paste-into',
163 'actions-document-save',
164 'actions-document-save-cleartranslationcache',
165 'actions-document-save-close',
166 'actions-document-save-new',
167 'actions-document-save-translation',
168 'actions-document-save-view',
169 'actions-document-select',
170 'actions-document-synchronize',
171 'actions-document-view',
172 'actions-edit-add',
173 'actions-edit-copy',
174 'actions-edit-copy-release',
175 'actions-edit-cut',
176 'actions-edit-cut-release',
177 'actions-edit-delete',
178 'actions-edit-download',
179 'actions-edit-hide',
180 'actions-edit-insert-default',
181 'actions-edit-localize-status-high',
182 'actions-edit-localize-status-low',
183 'actions-edit-merge-localization',
184 'actions-edit-pick-date',
185 'actions-edit-rename',
186 'actions-edit-replace',
187 'actions-edit-restore',
188 'actions-edit-undelete-edit',
189 'actions-edit-undo',
190 'actions-edit-unhide',
191 'actions-edit-upload',
192 'actions-input-clear',
193 'actions-insert-record',
194 'actions-insert-reference',
195 'actions-markstate',
196 'actions-message-error-close',
197 'actions-message-information-close',
198 'actions-message-notice-close',
199 'actions-message-ok-close',
200 'actions-message-warning-close',
201 'actions-move-down',
202 'actions-move-left',
203 'actions-move-move',
204 'actions-move-right',
205 'actions-move-to-bottom',
206 'actions-move-to-top',
207 'actions-move-up',
208 'actions-page-move',
209 'actions-page-new',
210 'actions-page-open',
211 'actions-selection-delete',
212 'actions-system-backend-user-emulate',
213 'actions-system-backend-user-switch',
214 'actions-system-cache-clear',
215 'actions-system-cache-clear-impact-high',
216 'actions-system-cache-clear-impact-low',
217 'actions-system-cache-clear-impact-medium',
218 'actions-system-cache-clear-rte',
219 'actions-system-extension-configure',
220 'actions-system-extension-documentation',
221 'actions-system-extension-download',
222 'actions-system-extension-import',
223 'actions-system-extension-install',
224 'actions-system-extension-sqldump',
225 'actions-system-extension-uninstall',
226 'actions-system-extension-update',
227 'actions-system-extension-update-disabled',
228 'actions-system-help-open',
229 'actions-system-list-open',
230 'actions-system-options-view',
231 'actions-system-pagemodule-open',
232 'actions-system-refresh',
233 'actions-system-shortcut-new',
234 'actions-system-tree-search-open',
235 'actions-system-typoscript-documentation',
236 'actions-system-typoscript-documentation-open',
237 'actions-template-new',
238 'actions-unmarkstate',
239 'actions-version-document-remove',
240 'actions-version-page-open',
241 'actions-version-swap-version',
242 'actions-version-swap-workspace',
243 'actions-version-workspace-preview',
244 'actions-version-workspace-sendtostage',
245 'actions-view-go-back',
246 'actions-view-go-down',
247 'actions-view-go-forward',
248 'actions-view-go-up',
249 'actions-view-list-collapse',
250 'actions-view-list-expand',
251 'actions-view-paging-first',
252 'actions-view-paging-first-disabled',
253 'actions-view-paging-last',
254 'actions-view-paging-last-disabled',
255 'actions-view-paging-next',
256 'actions-view-paging-next-disabled',
257 'actions-view-paging-previous',
258 'actions-view-paging-previous-disabled',
259 'actions-view-table-collapse',
260 'actions-view-table-expand',
261 'actions-window-open',
262 'apps-clipboard-images',
263 'apps-clipboard-list',
264 'apps-filetree-folder-add',
265 'apps-filetree-folder-default',
266 'apps-filetree-folder-list',
267 'apps-filetree-folder-locked',
268 'apps-filetree-folder-media',
269 'apps-filetree-folder-news',
270 'apps-filetree-folder-opened',
271 'apps-filetree-folder-recycler',
272 'apps-filetree-folder-temp',
273 'apps-filetree-folder-user',
274 'apps-filetree-mount',
275 'apps-filetree-root',
276 'apps-irre-collapsed',
277 'apps-irre-expanded',
278 'apps-pagetree-backend-user',
279 'apps-pagetree-backend-user-hideinmenu',
280 'apps-pagetree-collapse',
281 'apps-pagetree-drag-copy-above',
282 'apps-pagetree-drag-copy-below',
283 'apps-pagetree-drag-move-above',
284 'apps-pagetree-drag-move-below',
285 'apps-pagetree-drag-move-between',
286 'apps-pagetree-drag-move-into',
287 'apps-pagetree-drag-new-between',
288 'apps-pagetree-drag-new-inside',
289 'apps-pagetree-drag-place-denied',
290 'apps-pagetree-expand',
291 'apps-pagetree-folder-contains-approve',
292 'apps-pagetree-folder-contains-board',
293 'apps-pagetree-folder-contains-fe_users',
294 'apps-pagetree-folder-contains-news',
295 'apps-pagetree-folder-contains-shop',
296 'apps-pagetree-folder-default',
297 'apps-pagetree-page-advanced',
298 'apps-pagetree-page-advanced-hideinmenu',
299 'apps-pagetree-page-advanced-root',
300 'apps-pagetree-page-backend-users',
301 'apps-pagetree-page-backend-users-hideinmenu',
302 'apps-pagetree-page-backend-users-root',
303 'apps-pagetree-page-content-from-page',
304 'apps-pagetree-page-content-from-page-root',
305 'apps-pagetree-page-content-from-page-hideinmenu',
306 'apps-pagetree-page-default',
307 'apps-pagetree-page-domain',
308 'apps-pagetree-page-frontend-user',
309 'apps-pagetree-page-frontend-user-hideinmenu',
310 'apps-pagetree-page-frontend-user-root',
311 'apps-pagetree-page-frontend-users',
312 'apps-pagetree-page-frontend-users-hideinmenu',
313 'apps-pagetree-page-frontend-users-root',
314 'apps-pagetree-page-mountpoint',
315 'apps-pagetree-page-mountpoint-hideinmenu',
316 'apps-pagetree-page-mountpoint-root',
317 'apps-pagetree-page-no-icon-found',
318 'apps-pagetree-page-no-icon-found-hideinmenu',
319 'apps-pagetree-page-no-icon-found-root',
320 'apps-pagetree-page-not-in-menu',
321 'apps-pagetree-page-recycler',
322 'apps-pagetree-page-shortcut',
323 'apps-pagetree-page-shortcut-external',
324 'apps-pagetree-page-shortcut-external-hideinmenu',
325 'apps-pagetree-page-shortcut-external-root',
326 'apps-pagetree-page-shortcut-hideinmenu',
327 'apps-pagetree-page-shortcut-root',
328 'apps-pagetree-root',
329 'apps-pagetree-spacer',
330 'apps-tcatree-select-recursive',
331 'apps-toolbar-menu-actions',
332 'apps-toolbar-menu-cache',
333 'apps-toolbar-menu-opendocs',
334 'apps-toolbar-menu-search',
335 'apps-toolbar-menu-shortcut',
336 'apps-toolbar-menu-workspace',
337 'mimetypes-compressed',
338 'mimetypes-excel',
339 'mimetypes-media-audio',
340 'mimetypes-media-flash',
341 'mimetypes-media-image',
342 'mimetypes-media-video',
343 'mimetypes-other-other',
344 'mimetypes-pdf',
345 'mimetypes-powerpoint',
346 'mimetypes-text-css',
347 'mimetypes-text-csv',
348 'mimetypes-text-html',
349 'mimetypes-text-js',
350 'mimetypes-text-php',
351 'mimetypes-text-text',
352 'mimetypes-word',
353 'mimetypes-x-content-divider',
354 'mimetypes-x-content-domain',
355 'mimetypes-x-content-form',
356 'mimetypes-x-content-form-search',
357 'mimetypes-x-content-header',
358 'mimetypes-x-content-html',
359 'mimetypes-x-content-image',
360 'mimetypes-x-content-link',
361 'mimetypes-x-content-list-bullets',
362 'mimetypes-x-content-list-files',
363 'mimetypes-x-content-login',
364 'mimetypes-x-content-menu',
365 'mimetypes-x-content-multimedia',
366 'mimetypes-x-content-page-language-overlay',
367 'mimetypes-x-content-plugin',
368 'mimetypes-x-content-script',
369 'mimetypes-x-content-table',
370 'mimetypes-x-content-template',
371 'mimetypes-x-content-template-extension',
372 'mimetypes-x-content-template-static',
373 'mimetypes-x-content-text',
374 'mimetypes-x-content-text-picture',
375 'mimetypes-x-content-text-media',
376 'mimetypes-x-sys_action',
377 'mimetypes-x-sys_category',
378 'mimetypes-x-sys_language',
379 'mimetypes-x-sys_news',
380 'mimetypes-x-sys_workspace',
381 'mimetypes-x_belayout',
382 'status-dialog-error',
383 'status-dialog-information',
384 'status-dialog-notification',
385 'status-dialog-ok',
386 'status-dialog-warning',
387 'status-overlay-access-restricted',
388 'status-overlay-deleted',
389 'status-overlay-hidden',
390 'status-overlay-icon-missing',
391 'status-overlay-includes-subpages',
392 'status-overlay-locked',
393 'status-overlay-scheduled',
394 'status-overlay-scheduled-future-end',
395 'status-overlay-translated',
396 'status-status-checked',
397 'status-status-current',
398 'status-status-edit-read-only',
399 'status-status-icon-missing',
400 'status-status-locked',
401 'status-status-permission-denied',
402 'status-status-permission-granted',
403 'status-status-readonly',
404 'status-status-reference-hard',
405 'status-status-reference-soft',
406 'status-status-sorting-asc',
407 'status-status-sorting-desc',
408 'status-status-sorting-light-asc',
409 'status-status-sorting-light-desc',
410 'status-status-workspace-draft',
411 'status-system-extension-required',
412 'status-user-admin',
413 'status-user-backend',
414 'status-user-frontend',
415 'status-user-group-backend',
416 'status-user-group-frontend',
417 'status-warning-in-use',
418 'status-warning-lock',
419 'module-web',
420 'module-file',
421 'module-system',
422 'module-tools',
423 'module-user',
424 'module-help'
425 );
426
427
428 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
429 'deleted',
430 'hidden',
431 'starttime',
432 'endtime',
433 'futureendtime',
434 'fe_group',
435 'protectedSection'
436 );
437
438
439 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
440 'hidden' => 'status-overlay-hidden',
441 'fe_group' => 'status-overlay-access-restricted',
442 'starttime' => 'status-overlay-scheduled',
443 'endtime' => 'status-overlay-scheduled',
444 'futureendtime' => 'status-overlay-scheduled-future-end',
445 'readonly' => 'status-overlay-locked',
446 'deleted' => 'status-overlay-deleted',
447 'missing' => 'status-overlay-missing',
448 'translated' => 'status-overlay-translated',
449 'protectedSection' => 'status-overlay-includes-subpages'
450 );