[TASK] Make driver registry TCA change cacheable
[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 /**
44 * $TBE_MODULES contains the structure of the backend modules as they are
45 * arranged in main- and sub-modules. Every entry in this array represents a
46 * menu item on either first (key) or second level (value from list) in the
47 * left menu in the TYPO3 backend
48 * For information about adding modules to TYPO3 you should consult the
49 * documentation found in "Inside TYPO3"
50 */
51 $GLOBALS['TBE_MODULES'] = array(
52 'web' => 'list',
53 'file' => '',
54 'user' => '',
55 'tools' => '',
56 'system' => '',
57 'help' => '',
58 '_configuration' => array(
59 'web' => array(
60 'labels' => 'LLL:EXT:lang/locallang_mod_web.xlf',
61 'name' => 'web',
62 'iconIdentifier' => 'module-web'
63 ),
64 'file' => array(
65 'labels' => 'LLL:EXT:lang/locallang_mod_file.xlf',
66 'navigationFrameModule' => 'file_navframe',
67 'name' => 'file',
68 'workspaces' => 'online,custom',
69 'iconIdentifier' => 'module-file'
70 ),
71 'user' => array(
72 'labels' => 'LLL:EXT:lang/locallang_mod_usertools.xlf',
73 'name' => 'user',
74 'iconIdentifier' => 'status-user-backend'
75 ),
76 'tools' => array(
77 'labels' => 'LLL:EXT:lang/locallang_mod_admintools.xlf',
78 'name' => 'tools',
79 'iconIdentifier' => 'module-tools'
80 ),
81 'system' => array(
82 'labels' => 'LLL:EXT:lang/locallang_mod_system.xlf',
83 'name' => 'system',
84 'iconIdentifier' => 'module-system'
85 ),
86 'help' => array(
87 'labels' => 'LLL:EXT:lang/locallang_mod_help.xlf',
88 'name' => 'help',
89 'iconIdentifier' => 'module-help'
90 )
91 )
92 );
93
94 // Register the page tree core navigation component
95 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
96
97 /**
98 * $TBE_STYLES configures backend styles and colors; Basically this contains
99 * all the values that can be used to create new skins for TYPO3.
100 * For information about making skins to TYPO3 you should consult the
101 * documentation found in "Inside TYPO3"
102 */
103 $GLOBALS['TBE_STYLES'] = [];
104
105 /**
106 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
107 * For information about using the CSH API in TYPO3 you should consult the
108 * documentation found in "Inside TYPO3"
109 */
110 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
111 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
112 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
113 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
114 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
115 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
116 // General Core
117 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
118 // Web > Info
119 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
120 // Web > Func
121 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');