2 defined('TYPO3_MODE') or die();
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!
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(
17 'allowedTables' => '*'
19 (string)\TYPO3\CMS\Frontend\Page\PageRepository
::DOKTYPE_MOUNTPOINT
=> array(),
20 (string)\TYPO3\CMS\Frontend\Page\PageRepository
::DOKTYPE_SPACER
=> array(
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.
27 'allowedTables' => '*'
29 (string)\TYPO3\CMS\Frontend\Page\PageRepository
::DOKTYPE_RECYCLER
=> array(
30 // Doktype 255 is a recycle-bin.
32 'allowedTables' => '*'
36 'allowedTables' => 'pages',
37 'onlyAllowedTables' => '0'
41 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::allowTableOnStandardPages('sys_category');
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();
47 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::allowTableOnStandardPages('sys_file_reference');
48 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::allowTableOnStandardPages('sys_file_collection');
51 * $TBE_MODULES contains the structure of the backend modules as they are
52 * arranged in main- and sub-modules. Every entry in this array represents a
53 * menu item on either first (key) or second level (value from list) in the
54 * left menu in the TYPO3 backend
55 * For information about adding modules to TYPO3 you should consult the
56 * documentation found in "Inside TYPO3"
58 $GLOBALS['TBE_MODULES'] = array(
65 '_configuration' => array(
68 'll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf'
70 'configuration' => array(
72 'access' => 'user,group',
73 'icon' => 'module-web'
78 'll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf'
80 'configuration' => array(
82 'access' => 'user,group',
83 'workspaces' => 'online,custom',
84 'icon' => 'module-file'
89 'll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf'
91 'configuration' => array(
93 'access' => 'user,group',
94 'icon' => 'status-user-backend'
99 'll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf'
101 'configuration' => array(
104 'icon' => 'module-tools'
109 'll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf'
111 'configuration' => array(
114 'icon' => 'module-system'
119 'll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf'
121 'configuration' => array(
123 'icon' => 'module-help'
130 // Register the page tree core navigation component
131 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addCoreNavigationComponent('web', 'typo3-pagetree');
135 * $TBE_STYLES configures backend styles and colors; Basically this contains
136 * all the values that can be used to create new skins for TYPO3.
137 * For information about making skins to TYPO3 you should consult the
138 * documentation found in "Inside TYPO3"
140 $GLOBALS['TBE_STYLES'] = array(
141 'colorschemes' => array(
142 '0' => '#E4E0DB,#CBC7C3,#EDE9E5'
144 'borderschemes' => array(
145 '0' => array('border:solid 1px black;', 5)
152 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
153 * For information about using the CSH API in TYPO3 you should consult the
154 * documentation found in "Inside TYPO3"
156 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
157 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
158 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
159 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
160 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
161 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
163 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
165 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xlf');
167 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
169 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');
170 // Labels for TYPO3 4.5 and greater.
171 // These labels override the ones set above, while still falling back to the original labels
172 // if no translation is available.
173 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xlf'][] = 'EXT:lang/4.5/locallang_csh_pages.xlf';
174 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xlf'][] = 'EXT:lang/4.5/locallang_csh_corebe.xlf';
177 * Backend sprite icon-names
179 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
180 'actions-document-close',
181 'actions-document-duplicates-select',
182 'actions-document-edit-access',
183 'actions-document-export-csv', // Not used in core!
184 'actions-document-export-t3d',
185 'actions-document-history-open',
186 'actions-document-import-t3d',
187 'actions-document-info',
188 'actions-document-localize',
189 'actions-document-move',
190 'actions-document-new',
191 'actions-document-open',
192 'actions-document-open-read-only',
193 'actions-document-paste-after',
194 'actions-document-paste-into',
195 'actions-document-save',
196 'actions-document-save-cleartranslationcache', // Not used in core!
197 'actions-document-save-close',
198 'actions-document-save-new',
199 'actions-document-save-translation', // Not used in core!
200 'actions-document-save-view',
201 'actions-document-select',
202 'actions-document-synchronize',
203 'actions-document-view',
206 'actions-edit-copy-release',
208 'actions-edit-cut-release',
209 'actions-edit-delete',
210 'actions-edit-download',
212 'actions-edit-insert-default',
213 'actions-edit-localize-status-high',
214 'actions-edit-localize-status-low',
215 'actions-edit-merge-localization',
216 'actions-edit-pick-date',
217 'actions-edit-rename',
218 'actions-edit-replace',
219 'actions-edit-restore',
220 'actions-edit-undelete-edit',
222 'actions-edit-unhide',
223 'actions-edit-upload',
224 'actions-input-clear',
225 'actions-insert-record',
226 'actions-insert-reference',
228 'actions-message-error-close',
229 'actions-message-information-close',
230 'actions-message-notice-close',
231 'actions-message-ok-close',
232 'actions-message-warning-close',
236 'actions-move-right',
237 'actions-move-to-bottom',
238 'actions-move-to-top',
243 'actions-selection-delete',
244 'actions-system-backend-user-emulate',
245 'actions-system-backend-user-switch',
246 'actions-system-cache-clear',
247 'actions-system-cache-clear-impact-high',
248 'actions-system-cache-clear-impact-low',
249 'actions-system-cache-clear-impact-medium',
250 'actions-system-cache-clear-rte',
251 'actions-system-extension-configure',
252 'actions-system-extension-documentation',
253 'actions-system-extension-download',
254 'actions-system-extension-import',
255 'actions-system-extension-install',
256 'actions-system-extension-sqldump',
257 'actions-system-extension-uninstall',
258 'actions-system-extension-update',
259 'actions-system-extension-update-disabled',
260 'actions-system-help-open',
261 'actions-system-list-open',
262 'actions-system-options-view',
263 'actions-system-pagemodule-open',
264 'actions-system-refresh',
265 'actions-system-shortcut-new',
266 'actions-system-tree-search-open',
267 'actions-system-typoscript-documentation',
268 'actions-system-typoscript-documentation-open',
269 'actions-template-new',
270 'actions-unmarkstate',
271 'actions-version-document-remove',
272 'actions-version-page-open',
273 'actions-version-swap-version',
274 'actions-version-swap-workspace',
275 'actions-version-workspace-preview',
276 'actions-version-workspace-sendtostage',
277 'actions-view-go-back',
278 'actions-view-go-down',
279 'actions-view-go-forward',
280 'actions-view-go-up',
281 'actions-view-list-collapse',
282 'actions-view-list-expand',
283 'actions-view-paging-first',
284 'actions-view-paging-first-disabled',
285 'actions-view-paging-last',
286 'actions-view-paging-last-disabled',
287 'actions-view-paging-next',
288 'actions-view-paging-next-disabled',
289 'actions-view-paging-previous',
290 'actions-view-paging-previous-disabled',
291 'actions-view-table-collapse',
292 'actions-view-table-expand',
293 'actions-window-open',
294 'apps-clipboard-images',
295 'apps-clipboard-list',
296 'apps-filetree-folder-add',
297 'apps-filetree-folder-default',
298 'apps-filetree-folder-list',
299 'apps-filetree-folder-locked',
300 'apps-filetree-folder-media',
301 'apps-filetree-folder-news',
302 'apps-filetree-folder-opened',
303 'apps-filetree-folder-recycler',
304 'apps-filetree-folder-temp',
305 'apps-filetree-folder-user',
306 'apps-filetree-mount',
307 'apps-filetree-root',
308 'apps-irre-collapsed',
309 'apps-irre-expanded',
310 'apps-pagetree-backend-user',
311 'apps-pagetree-backend-user-hideinmenu',
312 'apps-pagetree-collapse',
313 'apps-pagetree-drag-copy-above',
314 'apps-pagetree-drag-copy-below',
315 'apps-pagetree-drag-move-above',
316 'apps-pagetree-drag-move-below',
317 'apps-pagetree-drag-move-between',
318 'apps-pagetree-drag-move-into',
319 'apps-pagetree-drag-new-between',
320 'apps-pagetree-drag-new-inside',
321 'apps-pagetree-drag-place-denied',
322 'apps-pagetree-expand',
323 'apps-pagetree-folder-contains-approve',
324 'apps-pagetree-folder-contains-board',
325 'apps-pagetree-folder-contains-fe_users',
326 'apps-pagetree-folder-contains-news',
327 'apps-pagetree-folder-contains-shop',
328 'apps-pagetree-folder-default',
329 'apps-pagetree-page-advanced',
330 'apps-pagetree-page-advanced-hideinmenu',
331 'apps-pagetree-page-advanced-root',
332 'apps-pagetree-page-backend-users',
333 'apps-pagetree-page-backend-users-hideinmenu',
334 'apps-pagetree-page-backend-users-root',
335 'apps-pagetree-page-content-from-page',
336 'apps-pagetree-page-content-from-page-hideinmenu',
337 'apps-pagetree-page-default',
338 'apps-pagetree-page-domain',
339 'apps-pagetree-page-frontend-user',
340 'apps-pagetree-page-frontend-user-hideinmenu',
341 'apps-pagetree-page-frontend-user-root',
342 'apps-pagetree-page-frontend-users',
343 'apps-pagetree-page-frontend-users-hideinmenu',
344 'apps-pagetree-page-frontend-users-root',
345 'apps-pagetree-page-mountpoint',
346 'apps-pagetree-page-mountpoint-hideinmenu',
347 'apps-pagetree-page-mountpoint-root',
348 'apps-pagetree-page-no-icon-found',
349 'apps-pagetree-page-no-icon-found-hideinmenu',
350 'apps-pagetree-page-no-icon-found-root',
351 'apps-pagetree-page-not-in-menu',
352 'apps-pagetree-page-recycler',
353 'apps-pagetree-page-shortcut',
354 'apps-pagetree-page-shortcut-external',
355 'apps-pagetree-page-shortcut-external-hideinmenu',
356 'apps-pagetree-page-shortcut-external-root',
357 'apps-pagetree-page-shortcut-hideinmenu',
358 'apps-pagetree-page-shortcut-root',
359 'apps-pagetree-root',
360 'apps-pagetree-spacer',
361 'apps-tcatree-select-recursive',
362 'apps-toolbar-menu-actions',
363 'apps-toolbar-menu-cache',
364 'apps-toolbar-menu-opendocs',
365 'apps-toolbar-menu-search',
366 'apps-toolbar-menu-shortcut',
367 'apps-toolbar-menu-workspace',
368 'mimetypes-compressed',
370 'mimetypes-media-audio',
371 'mimetypes-media-flash',
372 'mimetypes-media-image',
373 'mimetypes-media-video',
374 'mimetypes-other-other',
376 'mimetypes-powerpoint',
377 'mimetypes-text-css',
378 'mimetypes-text-csv',
379 'mimetypes-text-html',
381 'mimetypes-text-php',
382 'mimetypes-text-text',
384 'mimetypes-x-content-divider',
385 'mimetypes-x-content-domain',
386 'mimetypes-x-content-form',
387 'mimetypes-x-content-form-search',
388 'mimetypes-x-content-header',
389 'mimetypes-x-content-html',
390 'mimetypes-x-content-image',
391 'mimetypes-x-content-link',
392 'mimetypes-x-content-list-bullets',
393 'mimetypes-x-content-list-files',
394 'mimetypes-x-content-login',
395 'mimetypes-x-content-menu',
396 'mimetypes-x-content-multimedia',
397 'mimetypes-x-content-page-language-overlay',
398 'mimetypes-x-content-plugin',
399 'mimetypes-x-content-script',
400 'mimetypes-x-content-table',
401 'mimetypes-x-content-template',
402 'mimetypes-x-content-template-extension',
403 'mimetypes-x-content-template-static',
404 'mimetypes-x-content-text',
405 'mimetypes-x-content-text-picture',
406 'mimetypes-x-sys_action',
407 'mimetypes-x-sys_category',
408 'mimetypes-x-sys_language',
409 'mimetypes-x-sys_news',
410 'mimetypes-x-sys_workspace',
411 'mimetypes-x_belayout',
412 'status-dialog-error',
413 'status-dialog-information',
414 'status-dialog-notification',
416 'status-dialog-warning',
417 'status-overlay-access-restricted',
418 'status-overlay-deleted',
419 'status-overlay-hidden',
420 'status-overlay-icon-missing',
421 'status-overlay-includes-subpages',
422 'status-overlay-locked',
423 'status-overlay-scheduled',
424 'status-overlay-scheduled-future-end',
425 'status-overlay-translated',
426 'status-status-checked',
427 'status-status-current',
428 'status-status-edit-read-only',
429 'status-status-icon-missing',
430 'status-status-locked',
431 'status-status-permission-denied',
432 'status-status-permission-granted',
433 'status-status-readonly',
434 'status-status-reference-hard',
435 'status-status-reference-soft',
436 'status-status-sorting-asc',
437 'status-status-sorting-desc',
438 'status-status-sorting-light-asc',
439 'status-status-sorting-light-desc',
440 'status-status-workspace-draft',
441 'status-system-extension-required',
443 'status-user-backend',
444 'status-user-frontend',
445 'status-user-group-backend',
446 'status-user-group-frontend',
497 'status-version-no-version',
498 'status-warning-in-use',
499 'status-warning-lock',
509 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
520 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
521 'hidden' => 'status-overlay-hidden',
522 'fe_group' => 'status-overlay-access-restricted',
523 'starttime' => 'status-overlay-scheduled',
524 'endtime' => 'status-overlay-scheduled',
525 'futureendtime' => 'status-overlay-scheduled-future-end',
526 'readonly' => 'status-overlay-locked',
527 'deleted' => 'status-overlay-deleted',
528 'missing' => 'status-overlay-missing',
529 'translated' => 'status-overlay-translated',
530 'protectedSection' => 'status-overlay-includes-subpages'
533 // add stylesheets from the core
534 $GLOBALS['TBE_STYLES']['skins']['core']['stylesheetDirectories']['Base'] = 'EXT:core/Resources/Public/StyleSheets/';
536 // Adding flags to the sprite manager
537 if (TYPO3_MODE
=== 'BE' || TYPO3_MODE
=== 'FE' && isset($GLOBALS['BE_USER'])) {
540 'ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'an', 'ao', 'ar', 'as', 'at', 'au', 'aw', 'ax', 'az',
541 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'br', 'bs', 'bt', 'bv', 'bw', 'by', 'bz',
542 'ca', 'catalonia', 'cc', 'cd', 'cf', 'cg', 'ch', 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cs', 'cu', 'cv', 'cx', 'cy', 'cz',
543 'de', 'dj', 'dk', 'dm', 'do', 'dz',
544 'ec', 'ee', 'eg', 'eh', 'england', 'er', 'es', 'et', 'europeanunion',
545 'fam', 'fi', 'fj', 'fk', 'fm', 'fo', 'fr',
546 'ga', 'gb', 'gd', 'ge', 'gf', 'gh', 'gi', 'gl', 'gm', 'gn', 'gp', 'gq', 'gr', 'gs', 'gt', 'gu', 'gw', 'gy',
547 'hk', 'hm', 'hn', 'hr', 'ht', 'hu',
548 'id', 'ie', 'il', 'in', 'io', 'iq', 'ir', 'is', 'it',
550 'ke', 'kg', 'kh', 'ki', 'km', 'kn', 'kp', 'kr', 'kw', 'ky', 'kz',
551 'la', 'lb', 'lc', 'li', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly',
552 'ma', 'mc', 'md', 'me', 'mg', 'mh', 'mk', 'ml', 'mm', 'mn', 'mo', 'mp', 'mq', 'mr', 'ms', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz',
553 'na', 'nc', 'ne', 'nf', 'ng', 'ni', 'nl', 'no', 'np', 'nr', 'nu', 'nz',
555 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pm', 'pn', 'pr', 'ps', 'pt', 'pw', 'py',
557 're', 'ro', 'rs', 'ru', 'rw',
558 'sa', 'sb', 'sc', 'scotland', 'sd', 'se', 'sg', 'sh', 'si', 'sj', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'st', 'sv', 'sy', 'sz',
559 'tc', 'td', 'tf', 'tg', 'th', 'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tr', 'tt', 'tv', 'tw', 'tz',
560 'ua', 'ug', 'um', 'us', 'uy', 'uz',
561 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu',
567 $flagIcons = array();
568 foreach ($flagNames as $flagName) {
569 $flagIcons[] = 'flags-' . $flagName;
570 $flagIcons[] = 'flags-' . $flagName . '-overlay';
572 \TYPO3\CMS\Backend\Sprite\SpriteManager
::addIconSprite($flagIcons);
574 $GLOBALS['TBE_STYLES']['skins']['core'] = array(
576 'stylesheetDirectories' => array(
577 'css' => 'EXT:core/Resources/Public/Css/'
581 unset($flagNames, $flagName, $flagIcons);