1a5fced4019b1cfade63d0e0604475868a374973
[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' => 'LLL:EXT:lang/locallang_mod_web.xlf',
65 'name' => 'web',
66 'iconIdentifier' => 'module-web'
67 ),
68 'file' => array(
69 'labels' => 'LLL:EXT:lang/locallang_mod_file.xlf',
70 'navigationFrameModule' => 'file_navframe',
71 'name' => 'file',
72 'workspaces' => 'online,custom',
73 'iconIdentifier' => 'module-file'
74 ),
75 'user' => array(
76 'labels' => 'LLL:EXT:lang/locallang_mod_usertools.xlf',
77 'name' => 'user',
78 'iconIdentifier' => 'status-user-backend'
79 ),
80 'tools' => array(
81 'labels' => 'LLL:EXT:lang/locallang_mod_admintools.xlf',
82 'name' => 'tools',
83 'iconIdentifier' => 'module-tools'
84 ),
85 'system' => array(
86 'labels' => 'LLL:EXT:lang/locallang_mod_system.xlf',
87 'name' => 'system',
88 'iconIdentifier' => 'module-system'
89 ),
90 'help' => array(
91 'labels' => 'LLL:EXT:lang/locallang_mod_help.xlf',
92 'name' => 'help',
93 'iconIdentifier' => 'module-help'
94 )
95 )
96 );
97
98 // Register the page tree core navigation component
99 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
100
101 /**
102 * $TBE_STYLES configures backend styles and colors; Basically this contains
103 * all the values that can be used to create new skins for TYPO3.
104 * For information about making skins to TYPO3 you should consult the
105 * documentation found in "Inside TYPO3"
106 */
107 $GLOBALS['TBE_STYLES'] = [];
108
109 /**
110 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
111 * For information about using the CSH API in TYPO3 you should consult the
112 * documentation found in "Inside TYPO3"
113 */
114 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
115 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
116 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
117 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
118 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
119 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
120 // General Core
121 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
122 // Web > Info
123 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
124 // Web > Func
125 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');