53be2108398a62a1d8eb974531f364f2bee27218
[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 // Register the page tree core navigation component
111 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
112
113 /**
114 * $TBE_STYLES configures backend styles and colors; Basically this contains
115 * all the values that can be used to create new skins for TYPO3.
116 * For information about making skins to TYPO3 you should consult the
117 * documentation found in "Inside TYPO3"
118 */
119 $GLOBALS['TBE_STYLES'] = [];
120
121 /**
122 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
123 * For information about using the CSH API in TYPO3 you should consult the
124 * documentation found in "Inside TYPO3"
125 */
126 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
127 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
128 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
129 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
130 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
131 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
132 // General Core
133 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
134 // Web > Info
135 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
136 // Web > Func
137 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');