Revert "[TASK] Move t3lib/stddb files to ext:core"
[Packages/TYPO3.CMS.git] / t3lib / stddb / tables.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Contains the initialization of global TYPO3 variables among
29 * which $TCA is the most significant.
30 *
31 * The list in order of appearance is: $PAGES_TYPES, $TCA,
32 * $TBE_MODULES, $TBE_STYLES, $FILEICONS
33 * These variables are first of all used in the backend but to some degree in
34 * the frontend as well. (See references)
35 * See the document "Inside TYPO3" for a description of each variable in
36 * addition to the comment associated with each.
37 *
38 * This file is included from "typo3/init.php" (backend) and "index_ts.php"
39 * (frontend) as the first file of a three-fold inclusion session
40 * (see references):
41 * 1) First this script is included.
42 * This should initialize the variables shown above.
43 * 2) Then either the concatenated ext_tables.php cache file of all extensions
44 * is loaded, or each ext_tables.php file of active extensions.
45 * 3) Finally if the constant "TYPO3_extTableDef_script" defines a file name
46 * from typo3conf/ it is included, also for overriding values (the old-school
47 * way before extensions came in). See bootstrap loadExtensionTables()
48 *
49 * Configuration in this file should NOT be edited directly. If you would like
50 * to alter or extend this information, please make an extension which does so.
51 * Thus you preserve backwards compatibility.
52 *
53 * Revised for TYPO3 3.6 July/2003 by Kasper Skårhøj
54 *
55 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
56 */
57
58 /**
59 * $PAGES_TYPES defines the various types of pages (field: doktype) the system
60 * can handle and what restrictions may apply to them.
61 * Here you can set the icon and especially you can define which tables are
62 * allowed on a certain pagetype (doktype)
63 * NOTE: The 'default' entry in the $PAGES_TYPES-array is the 'base' for all
64 * types, and for every type the entries simply overrides the entries in the 'default' type!
65 */
66 $PAGES_TYPES = array(
67 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
68 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
69 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
70 'type' => 'web',
71 'allowedTables' => '*'
72 ),
73 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
74 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array('type' => 'sys'),
75 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
76 // Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like. In CMS context it's NOT a viewable page. Can contain any element.
77 'type' => 'sys',
78 'allowedTables' => '*'
79 ),
80 (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
81 // Doktype 255 is a recycle-bin.
82 'type' => 'sys',
83 'allowedTables' => '*'
84 ),
85 'default' => array(
86 'type' => 'web',
87 'allowedTables' => 'pages',
88 'onlyAllowedTables' => '0'
89 )
90 );
91 /**
92 * $TCA:
93 * This array configures TYPO3 to work with the tables from the database by
94 * assigning meta information about data types, relations etc. The global
95 * variable $TCA will contain the information needed to recognize and
96 * render each table in the backend
97 * See documentation 'Inside TYPO3' for the syntax and list of
98 * required tables/fields!
99 *
100 * The tables configured in this document (and backed up by "tbl_be.php")
101 * is the required minimum set of tables/field that any TYPO3 system MUST have.
102 * These tables are therefore a part of the TYPO3 core.
103 * The SQL definitions of these tables (and some more which are not defined in
104 * $TCA) is found in the file "tables.sql" Only the "pages" table is defined
105 * fully in this file - the others are only defined for the "ctrl" part and
106 * the columns are defined in detail in the associated file, "tbl_be.php"
107 *
108 * NOTE: The (default) icon for a table is defined 1) as a giffile named
109 * 'gfx/i/[tablename].gif' or 2) as the value of [table][ctrl][iconfile]
110 * NOTE: [table][ctrl][rootLevel] goes NOT for pages. Apart from that if
111 * rootLevel is TRUE, records can ONLY be created on rootLevel. If it's
112 * FALSE records can ONLY be created OUTSIDE rootLevel
113 */
114 $TCA = array();
115 /**
116 * Table "pages":
117 * The mandatory pages table. The backbone of the TYPO3 page tree structure.
118 * All other records configured in $TCA must have a field, "pid", which relates
119 * the record to a page record's "uid" field.
120 * Must be COMPLETELY configured in tables.php
121 */
122 $TCA['pages'] = array(
123 'ctrl' => array(
124 'label' => 'title',
125 'tstamp' => 'tstamp',
126 'sortby' => 'sorting',
127 'title' => 'LLL:EXT:lang/locallang_tca.php:pages',
128 'type' => 'doktype',
129 'versioningWS' => 2,
130 'origUid' => 't3_origuid',
131 'delete' => 'deleted',
132 'crdate' => 'crdate',
133 'hideAtCopy' => 1,
134 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
135 'cruser_id' => 'cruser_id',
136 'editlock' => 'editlock',
137 'useColumnsForDefaultValues' => 'doktype,fe_group,hidden',
138 'dividers2tabs' => 1,
139 'enablecolumns' => array(
140 'disabled' => 'hidden',
141 'starttime' => 'starttime',
142 'endtime' => 'endtime',
143 'fe_group' => 'fe_group'
144 ),
145 'transForeignTable' => 'pages_language_overlay',
146 'typeicon_column' => 'doktype',
147 'typeicon_classes' => array(
148 '1' => 'apps-pagetree-page-default',
149 '1-hideinmenu' => 'apps-pagetree-page-not-in-menu',
150 '1-root' => 'apps-pagetree-page-domain',
151 '3' => 'apps-pagetree-page-shortcut-external',
152 '3-hideinmenu' => 'apps-pagetree-page-shortcut-external-hideinmenu',
153 '3-root' => 'apps-pagetree-page-shortcut-external-root',
154 '4' => 'apps-pagetree-page-shortcut',
155 '4-hideinmenu' => 'apps-pagetree-page-shortcut-hideinmenu',
156 '4-root' => 'apps-pagetree-page-shortcut-root',
157 '6' => 'apps-pagetree-page-backend-users',
158 '6-hideinmenu' => 'apps-pagetree-page-backend-users-hideinmenu',
159 '6-root' => 'apps-pagetree-page-backend-users-root',
160 '7' => 'apps-pagetree-page-mountpoint',
161 '7-hideinmenu' => 'apps-pagetree-page-mountpoint-hideinmenu',
162 '7-root' => 'apps-pagetree-page-mountpoint-root',
163 '199' => 'apps-pagetree-spacer',
164 '199-hideinmenu' => 'apps-pagetree-spacer',
165 '199-root' => 'apps-pagetree-page-domain',
166 '254' => 'apps-pagetree-folder-default',
167 '254-hideinmenu' => 'apps-pagetree-folder-default',
168 '254-root' => 'apps-pagetree-page-domain',
169 '255' => 'apps-pagetree-page-recycler',
170 '255-hideinmenu' => 'apps-pagetree-page-recycler',
171 'contains-shop' => 'apps-pagetree-folder-contains-shop',
172 'contains-approve' => 'apps-pagetree-folder-contains-approve',
173 'contains-fe_users' => 'apps-pagetree-folder-contains-fe_users',
174 'contains-board' => 'apps-pagetree-folder-contains-board',
175 'contains-news' => 'apps-pagetree-folder-contains-news',
176 'default' => 'apps-pagetree-page-default'
177 ),
178 'typeicons' => array(
179 '1' => 'pages.gif',
180 '254' => 'sysf.gif',
181 '255' => 'recycler.gif'
182 ),
183 'dynamicConfigFile' => 'T3LIB:tbl_pages.php',
184 'searchFields' => 'title,alias,nav_title,subtitle,url,keywords,description,abstract,author,author_email'
185 )
186 );
187 /**
188 * Table "be_users":
189 * Backend Users for TYPO3.
190 * This is only the 'header' part (ctrl). The full configuration is
191 * found in t3lib/stddb/tbl_be.php
192 */
193 $TCA['be_users'] = array(
194 'ctrl' => array(
195 'label' => 'username',
196 'tstamp' => 'tstamp',
197 'title' => 'LLL:EXT:lang/locallang_tca.php:be_users',
198 'crdate' => 'crdate',
199 'cruser_id' => 'cruser_id',
200 'delete' => 'deleted',
201 'adminOnly' => 1,
202 // Only admin users can edit
203 'rootLevel' => 1,
204 'default_sortby' => 'ORDER BY admin, username',
205 'enablecolumns' => array(
206 'disabled' => 'disable',
207 'starttime' => 'starttime',
208 'endtime' => 'endtime'
209 ),
210 'type' => 'admin',
211 'typeicon_column' => 'admin',
212 'typeicons' => array(
213 '0' => 'be_users.gif',
214 '1' => 'be_users_admin.gif'
215 ),
216 'typeicon_classes' => array(
217 '0' => 'status-user-backend',
218 '1' => 'status-user-admin',
219 'default' => 'status-user-backend'
220 ),
221 'mainpalette' => '1',
222 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods',
223 'dividers2tabs' => TRUE,
224 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
225 'versioningWS_alwaysAllowLiveEdit' => TRUE,
226 'searchFields' => 'username,email,realName'
227 )
228 );
229 /**
230 * Table "be_groups":
231 * Backend Usergroups for TYPO3.
232 * This is only the 'header' part (ctrl).
233 * The full configuration is found in t3lib/stddb/tbl_be.php
234 */
235 $TCA['be_groups'] = array(
236 'ctrl' => array(
237 'label' => 'title',
238 'tstamp' => 'tstamp',
239 'crdate' => 'crdate',
240 'cruser_id' => 'cruser_id',
241 'delete' => 'deleted',
242 'default_sortby' => 'ORDER BY title',
243 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
244 'adminOnly' => 1,
245 'rootLevel' => 1,
246 'type' => 'inc_access_lists',
247 'typeicon_column' => 'inc_access_lists',
248 'typeicons' => array(
249 '1' => 'be_groups_lists.gif'
250 ),
251 'typeicon_classes' => array(
252 'default' => 'status-user-group-backend'
253 ),
254 'enablecolumns' => array(
255 'disabled' => 'hidden'
256 ),
257 'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups',
258 'useColumnsForDefaultValues' => 'lockToDomain, fileoper_perms',
259 'dividers2tabs' => TRUE,
260 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
261 'versioningWS_alwaysAllowLiveEdit' => TRUE,
262 'searchFields' => 'title'
263 )
264 );
265 /**
266 * Table "sys_filemounts":
267 * Defines filepaths on the server which can be mounted for users so they can
268 * upload and manage files online by eg. the Filelist module
269 * This is only the 'header' part (ctrl). The full configuration is found
270 * in t3lib/stddb/tbl_be.php
271 */
272 $TCA['sys_filemounts'] = array(
273 'ctrl' => array(
274 'label' => 'title',
275 'tstamp' => 'tstamp',
276 'sortby' => 'sorting',
277 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
278 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts',
279 'adminOnly' => 1,
280 'rootLevel' => 1,
281 'delete' => 'deleted',
282 'enablecolumns' => array(
283 'disabled' => 'hidden'
284 ),
285 'iconfile' => '_icon_ftp.gif',
286 'useColumnsForDefaultValues' => 'path,base',
287 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
288 'versioningWS_alwaysAllowLiveEdit' => TRUE,
289 'searchFields' => 'title,path'
290 )
291 );
292 /**
293 * Table "sys_category":
294 * Represents all categories to be used for record categorization
295 */
296 $TCA['sys_category'] = array(
297 'ctrl' => array(
298 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category',
299 'label' => 'title',
300 'tstamp' => 'tstamp',
301 'crdate' => 'crdate',
302 'cruser_id' => 'cruser_id',
303 'delete' => 'deleted',
304 'default_sortby' => 'ORDER BY title ASC',
305 'dividers2tabs' => TRUE,
306 'versioningWS' => 2,
307 'versioning_followPages' => TRUE,
308 'origUid' => 't3_origuid',
309 'languageField' => 'sys_language_uid',
310 'transOrigPointerField' => 'l10n_parent',
311 'transOrigDiffSourceField' => 'l10n_diffsource',
312 'searchFields' => 'title,description',
313 'enablecolumns' => array(
314 'disabled' => 'hidden',
315 'starttime' => 'starttime',
316 'endtime' => 'endtime'
317 ),
318 'dynamicConfigFile' => 'T3LIB:tca_sys_category.php',
319 'typeicon_classes' => array(
320 'default' => 'mimetypes-x-sys_category'
321 )
322 )
323 );
324 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category');
325 /**
326 * Table "sys_collection":
327 */
328 $TCA['sys_collection'] = array(
329 'ctrl' => array(
330 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection',
331 'label' => 'title',
332 'tstamp' => 'tstamp',
333 'crdate' => 'crdate',
334 'cruser_id' => 'cruser_id',
335 'versioningWS' => TRUE,
336 'origUid' => 't3_origuid',
337 'languageField' => 'sys_language_uid',
338 'transOrigPointerField' => 'l10n_parent',
339 'transOrigDiffSourceField' => 'l10n_diffsource',
340 'default_sortby' => 'ORDER BY crdate',
341 'delete' => 'deleted',
342 'type' => 'type',
343 'rootLevel' => -1,
344 'searchFields' => 'title,description',
345 'typeicon_column' => 'type',
346 'typeicon_classes' => array(
347 'default' => 'apps-clipboard-list',
348 'static' => 'apps-clipboard-list',
349 'filter' => 'actions-system-tree-search-open'
350 ),
351 'enablecolumns' => array(
352 'disabled' => 'hidden',
353 'starttime' => 'starttime',
354 'endtime' => 'endtime',
355 'fe_group' => 'fe_group'
356 ),
357 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
358 )
359 );
360 /**
361 * Table "sys_file_storage":
362 * defines a root-point of a file storage, that is like a mount point.
363 * each storage is attached to a driver (local, webdav, amazons3) and
364 * thus is the entry-point for all files
365 */
366 $TCA['sys_file_storage'] = array(
367 'ctrl' => array(
368 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage',
369 'label' => 'name',
370 'tstamp' => 'tstamp',
371 'crdate' => 'crdate',
372 'cruser_id' => 'cruser_id',
373 'default_sortby' => 'ORDER BY name',
374 'delete' => 'deleted',
375 'rootLevel' => TRUE,
376 'versioningWS_alwaysAllowLiveEdit' => TRUE,
377 // only have LIVE records of file storages
378 'enablecolumns' => array(
379 'disabled' => 'hidden'
380 ),
381 'dividers2tabs' => TRUE,
382 'requestUpdate' => 'driver',
383 'iconfile' => '_icon_ftp.gif',
384 'dynamicConfigFile' => 'T3LIB:tca_sys_file_storage.php'
385 )
386 );
387 /**
388 * Table "sys_file":
389 * Represents all files that are tracked by TYPO3
390 * which are assets, single entries of files with additional metadata
391 */
392 $TCA['sys_file'] = array(
393 'ctrl' => array(
394 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
395 'label' => 'name',
396 'tstamp' => 'tstamp',
397 'crdate' => 'crdate',
398 'cruser_id' => 'cruser_id',
399 'type' => 'type',
400 'hideTable' => TRUE,
401 'rootLevel' => TRUE,
402 'versioningWS' => TRUE,
403 'origUid' => 't3_origuid',
404 'default_sortby' => 'ORDER BY crdate DESC',
405 'delete' => 'deleted',
406 'dividers2tabs' => TRUE,
407 'typeicon_column' => 'type',
408 'typeicon_classes' => array(
409 '1' => 'mimetypes-text-text',
410 '2' => 'mimetypes-media-image',
411 '3' => 'mimetypes-media-audio',
412 '4' => 'mimetypes-media-video',
413 '5' => 'mimetypes-application',
414 'default' => 'mimetypes-other-other'
415 ),
416 'security' => array(
417 'ignoreWebMountRestriction' => TRUE,
418 'ignoreRootLevelRestriction' => TRUE,
419 ),
420 'dynamicConfigFile' => 'T3LIB:tca_sys_file.php'
421 )
422 );
423 /**
424 * Table "sys_file_reference":
425 * Is a single usage of a sys_file record somewhere in the installation
426 * Is kind of like a MM-table between sys_file and e.g. tt_content:image that
427 * is shown up in TCA so additional metadata can be added for this specific
428 * kind of usage
429 */
430 $TCA['sys_file_reference'] = array(
431 'ctrl' => array(
432 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference',
433 'label' => 'uid',
434 'tstamp' => 'tstamp',
435 'crdate' => 'crdate',
436 'cruser_id' => 'cruser_id',
437 'type' => 'uid_local:type',
438 'hideTable' => TRUE,
439 'rootLevel' => TRUE,
440 'sortby' => 'sorting',
441 'delete' => 'deleted',
442 'versioningWS' => TRUE,
443 'languageField' => 'sys_language_uid',
444 'transOrigPointerField' => 'l10n_parent',
445 'transOrigDiffSourceField' => 'l10n_diffsource',
446 // records can and should be edited in workspaces
447 'shadowColumnsForNewPlaceholders' => 'tablenames,fieldname,uid_local,uid_foreign',
448 'enablecolumns' => array(
449 'disabled' => 'hidden'
450 ),
451 'security' => array(
452 'ignoreWebMountRestriction' => TRUE,
453 'ignoreRootLevelRestriction' => TRUE,
454 ),
455 'dynamicConfigFile' => 'T3LIB:tca_sys_file_reference.php'
456 )
457 );
458 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_reference');
459 /**
460 * Table "sys_file_collection":
461 * Represents a list of sys_file records
462 */
463 $TCA['sys_file_collection'] = array(
464 'ctrl' => array(
465 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection',
466 'label' => 'title',
467 'tstamp' => 'tstamp',
468 'crdate' => 'crdate',
469 'cruser_id' => 'cruser_id',
470 'versioningWS' => TRUE,
471 'origUid' => 't3_origuid',
472 'languageField' => 'sys_language_uid',
473 'transOrigPointerField' => 'l10n_parent',
474 'transOrigDiffSourceField' => 'l10n_diffsource',
475 'default_sortby' => 'ORDER BY crdate',
476 'delete' => 'deleted',
477 'rootlevel' => -1,
478 'type' => 'type',
479 'typeicon_column' => 'type',
480 'typeicon_classes' => array(
481 'default' => 'apps-filetree-folder-media',
482 'static' => 'apps-clipboard-images',
483 'folder' => 'apps-filetree-folder-media'
484 ),
485 'enablecolumns' => array(
486 'disabled' => 'hidden',
487 'starttime' => 'starttime',
488 'endtime' => 'endtime'
489 ),
490 'dynamicConfigFile' => 'T3LIB:tca_sys_file_collection.php'
491 )
492 );
493 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_collection');
494 /**
495 * Table "sys_history":
496 * Holds history records, the config part is defined in t3lib/stddb/tbl_be.php
497 */
498 $TCA['sys_history'] = array(
499 'ctrl' => array(
500 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_history',
501 'label' => 'tablename',
502 'tstamp' => 'tstamp',
503 'adminOnly' => TRUE,
504 'rootLevel' => TRUE,
505 'hideTable' => TRUE,
506 'default_sortby' => 'uid DESC',
507 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
508 )
509 );
510 /**
511 * Table "sys_languages":
512 * Defines possible languages used for translation of records in the system
513 * This is only the 'header' part (ctrl). The full configuration is found
514 * in t3lib/stddb/tbl_be.php
515 */
516 $TCA['sys_language'] = array(
517 'ctrl' => array(
518 'label' => 'title',
519 'tstamp' => 'tstamp',
520 'default_sortby' => 'ORDER BY title',
521 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_language',
522 'adminOnly' => 1,
523 'rootLevel' => 1,
524 'enablecolumns' => array(
525 'disabled' => 'hidden'
526 ),
527 'typeicon_classes' => array(
528 'default' => 'mimetypes-x-sys_language'
529 ),
530 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
531 'versioningWS_alwaysAllowLiveEdit' => TRUE
532 )
533 );
534 /**
535 * Table "sys_log":
536 * Holds log records, the config part is defined in t3lib/stddb/tbl_be.php
537 */
538 $TCA['sys_log'] = array(
539 'ctrl' => array(
540 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_log',
541 'label' => 'details',
542 'tstamp' => 'tstamp',
543 'adminOnly' => TRUE,
544 'rootLevel' => TRUE,
545 'hideTable' => TRUE,
546 'default_sortby' => 'uid DESC',
547 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
548 )
549 );
550 /**
551 * Table "sys_news":
552 * Holds news records to be displayed in the login screen
553 * This is only the 'header' part (ctrl). The full configuration is found
554 * in t3lib/stddb/tbl_be.php
555 */
556 $TCA['sys_news'] = array(
557 'ctrl' => array(
558 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_news',
559 'label' => 'title',
560 'tstamp' => 'tstamp',
561 'crdate' => 'crdate',
562 'cruser_id' => 'cruser_id',
563 'adminOnly' => TRUE,
564 'rootLevel' => TRUE,
565 'delete' => 'deleted',
566 'enablecolumns' => array(
567 'disabled' => 'hidden',
568 'starttime' => 'starttime',
569 'endtime' => 'endtime'
570 ),
571 'default_sortby' => 'crdate DESC',
572 'typeicon_classes' => array(
573 'default' => 'mimetypes-x-sys_news'
574 ),
575 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
576 'dividers2tabs' => TRUE
577 )
578 );
579 /**
580 * $TBE_MODULES contains the structure of the backend modules as they are
581 * arranged in main- and sub-modules. Every entry in this array represents a
582 * menu item on either first (key) or second level (value from list) in the
583 * left menu in the TYPO3 backend
584 * For information about adding modules to TYPO3 you should consult the
585 * documentation found in "Inside TYPO3"
586 */
587 $TBE_MODULES = array(
588 'web' => 'list',
589 'file' => '',
590 'user' => '',
591 'tools' => '',
592 'help' => ''
593 );
594 // Register the pagetree core navigation component
595 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
596 /**
597 * $TBE_STYLES configures backend styles and colors; Basically this contains
598 * all the values that can be used to create new skins for TYPO3.
599 * For information about making skins to TYPO3 you should consult the
600 * documentation found in "Inside TYPO3"
601 */
602 $TBE_STYLES = array(
603 'colorschemes' => array(
604 '0' => '#E4E0DB,#CBC7C3,#EDE9E5'
605 ),
606 'borderschemes' => array(
607 '0' => array('border:solid 1px black;', 5)
608 )
609 );
610 /**
611 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
612 * For information about using the CSH API in TYPO3 you should consult the
613 * documentation found in "Inside TYPO3"
614 */
615 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xml');
616 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xml');
617 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xml');
618 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xml');
619 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xml');
620 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xml');
621 // General Core
622 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xml');
623 // Extension manager
624 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xml');
625 // Web > Info
626 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xml');
627 // Web > Func
628 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xml');
629 // Labels for TYPO3 4.5 and greater.
630 // These labels override the ones set above, while still falling back to the original labels
631 // if no translation is available.
632 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xml'][] = 'EXT:lang/4.5/locallang_csh_pages.xml';
633 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xml'][] = 'EXT:lang/4.5/locallang_csh_corebe.xml';
634 /**
635 * $FILEICONS defines icons for the various file-formats
636 */
637 $FILEICONS = array(
638 'txt' => 'txt.gif',
639 'pdf' => 'pdf.gif',
640 'doc' => 'doc.gif',
641 'ai' => 'ai.gif',
642 'bmp' => 'bmp.gif',
643 'tif' => 'tif.gif',
644 'htm' => 'htm.gif',
645 'html' => 'html.gif',
646 'pcd' => 'pcd.gif',
647 'gif' => 'gif.gif',
648 'jpg' => 'jpg.gif',
649 'jpeg' => 'jpg.gif',
650 'mpg' => 'mpg.gif',
651 'mpeg' => 'mpeg.gif',
652 'exe' => 'exe.gif',
653 'com' => 'exe.gif',
654 'zip' => 'zip.gif',
655 'tgz' => 'zip.gif',
656 'gz' => 'zip.gif',
657 'php3' => 'php3.gif',
658 'php4' => 'php3.gif',
659 'php5' => 'php3.gif',
660 'php6' => 'php3.gif',
661 'php' => 'php3.gif',
662 'ppt' => 'ppt.gif',
663 'ttf' => 'ttf.gif',
664 'pcx' => 'pcx.gif',
665 'png' => 'png.gif',
666 'tga' => 'tga.gif',
667 'class' => 'java.gif',
668 'sxc' => 'sxc.gif',
669 'sxw' => 'sxw.gif',
670 'xls' => 'xls.gif',
671 'swf' => 'swf.gif',
672 'swa' => 'flash.gif',
673 'dcr' => 'flash.gif',
674 'wav' => 'wav.gif',
675 'mp3' => 'mp3.gif',
676 'avi' => 'avi.gif',
677 'au' => 'au.gif',
678 'mov' => 'mov.gif',
679 '3ds' => '3ds.gif',
680 'csv' => 'csv.gif',
681 'ico' => 'ico.gif',
682 'max' => 'max.gif',
683 'ps' => 'ps.gif',
684 'tmpl' => 'tmpl.gif',
685 'xls' => 'xls.gif',
686 'fh3' => 'fh3.gif',
687 'inc' => 'inc.gif',
688 'mid' => 'mid.gif',
689 'psd' => 'psd.gif',
690 'xml' => 'xml.gif',
691 'rtf' => 'rtf.gif',
692 't3x' => 't3x.gif',
693 't3d' => 't3d.gif',
694 'cdr' => 'cdr.gif',
695 'dtd' => 'dtd.gif',
696 'sgml' => 'sgml.gif',
697 'ani' => 'ani.gif',
698 'css' => 'css.gif',
699 'eps' => 'eps.gif',
700 'js' => 'js.gif',
701 'wrl' => 'wrl.gif',
702 'default' => 'default.gif'
703 );
704 /**
705 * Backend sprite icon-names
706 */
707 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
708 'actions-document-close',
709 'actions-document-duplicates-select',
710 'actions-document-edit-access',
711 'actions-document-export-csv',
712 'actions-document-export-t3d',
713 'actions-document-history-open',
714 'actions-document-import-t3d',
715 'actions-document-info',
716 'actions-document-localize',
717 'actions-document-move',
718 'actions-document-new',
719 'actions-document-open',
720 'actions-document-open-read-only',
721 'actions-document-paste-after',
722 'actions-document-paste-into',
723 'actions-document-save',
724 'actions-document-save-close',
725 'actions-document-save-new',
726 'actions-document-save-view',
727 'actions-document-select',
728 'actions-document-synchronize',
729 'actions-document-view',
730 'actions-edit-add',
731 'actions-edit-copy',
732 'actions-edit-copy-release',
733 'actions-edit-cut',
734 'actions-edit-cut-release',
735 'actions-edit-delete',
736 'actions-edit-hide',
737 'actions-edit-insert-default',
738 'actions-edit-localize-status-high',
739 'actions-edit-localize-status-low',
740 'actions-edit-merge-localization',
741 'actions-edit-pick-date',
742 'actions-edit-rename',
743 'actions-edit-restore',
744 'actions-edit-undelete-edit',
745 'actions-edit-undo',
746 'actions-edit-unhide',
747 'actions-edit-upload',
748 'actions-input-clear',
749 'actions-insert-record',
750 'actions-insert-reference',
751 'actions-message-error-close',
752 'actions-message-information-close',
753 'actions-message-notice-close',
754 'actions-message-ok-close',
755 'actions-message-warning-close',
756 'actions-move-down',
757 'actions-move-left',
758 'actions-move-move',
759 'actions-move-right',
760 'actions-move-to-bottom',
761 'actions-move-to-top',
762 'actions-move-up',
763 'actions-page-move',
764 'actions-page-new',
765 'actions-page-open',
766 'actions-selection-delete',
767 'actions-system-backend-user-emulate',
768 'actions-system-backend-user-switch',
769 'actions-system-cache-clear',
770 'actions-system-cache-clear-impact-high',
771 'actions-system-cache-clear-impact-low',
772 'actions-system-cache-clear-impact-medium',
773 'actions-system-cache-clear-rte',
774 'actions-system-extension-configure',
775 'actions-system-extension-documentation',
776 'actions-system-extension-download',
777 'actions-system-extension-import',
778 'actions-system-extension-install',
779 'actions-system-extension-sqldump',
780 'actions-system-extension-uninstall',
781 'actions-system-extension-update',
782 'actions-system-help-open',
783 'actions-system-list-open',
784 'actions-system-options-view',
785 'actions-system-pagemodule-open',
786 'actions-system-refresh',
787 'actions-system-shortcut-new',
788 'actions-system-tree-search-open',
789 'actions-system-typoscript-documentation',
790 'actions-system-typoscript-documentation-open',
791 'actions-template-new',
792 'actions-version-document-remove',
793 'actions-version-page-open',
794 'actions-version-swap-version',
795 'actions-version-swap-workspace',
796 'actions-version-workspace-preview',
797 'actions-version-workspace-sendtostage',
798 'actions-view-go-back',
799 'actions-view-go-down',
800 'actions-view-go-forward',
801 'actions-view-go-up',
802 'actions-view-list-collapse',
803 'actions-view-list-expand',
804 'actions-view-paging-first',
805 'actions-view-paging-first-disabled',
806 'actions-view-paging-last',
807 'actions-view-paging-last-disabled',
808 'actions-view-paging-next',
809 'actions-view-paging-next-disabled',
810 'actions-view-paging-previous',
811 'actions-view-paging-previous-disabled',
812 'actions-view-table-collapse',
813 'actions-view-table-expand',
814 'actions-window-open',
815 'apps-clipboard-images',
816 'apps-clipboard-list',
817 'apps-filetree-folder-add',
818 'apps-filetree-folder-default',
819 'apps-filetree-folder-list',
820 'apps-filetree-folder-locked',
821 'apps-filetree-folder-media',
822 'apps-filetree-folder-news',
823 'apps-filetree-folder-opened',
824 'apps-filetree-folder-recycler',
825 'apps-filetree-folder-temp',
826 'apps-filetree-folder-user',
827 'apps-filetree-mount',
828 'apps-filetree-root',
829 'apps-irre-collapsed',
830 'apps-irre-expanded',
831 'apps-pagetree-backend-user',
832 'apps-pagetree-backend-user-hideinmenu',
833 'apps-pagetree-collapse',
834 'apps-pagetree-drag-copy-above',
835 'apps-pagetree-drag-copy-below',
836 'apps-pagetree-drag-move-above',
837 'apps-pagetree-drag-move-below',
838 'apps-pagetree-drag-move-between',
839 'apps-pagetree-drag-move-into',
840 'apps-pagetree-drag-new-between',
841 'apps-pagetree-drag-new-inside',
842 'apps-pagetree-drag-place-denied',
843 'apps-pagetree-expand',
844 'apps-pagetree-folder-contains-approve',
845 'apps-pagetree-folder-contains-board',
846 'apps-pagetree-folder-contains-fe_users',
847 'apps-pagetree-folder-contains-news',
848 'apps-pagetree-folder-contains-shop',
849 'apps-pagetree-folder-default',
850 'apps-pagetree-page-advanced',
851 'apps-pagetree-page-advanced-hideinmenu',
852 'apps-pagetree-page-advanced-root',
853 'apps-pagetree-page-backend-users',
854 'apps-pagetree-page-backend-users-hideinmenu',
855 'apps-pagetree-page-backend-users-root',
856 'apps-pagetree-page-default',
857 'apps-pagetree-page-domain',
858 'apps-pagetree-page-frontend-user',
859 'apps-pagetree-page-frontend-user-hideinmenu',
860 'apps-pagetree-page-frontend-user-root',
861 'apps-pagetree-page-frontend-users',
862 'apps-pagetree-page-frontend-users-hideinmenu',
863 'apps-pagetree-page-frontend-users-root',
864 'apps-pagetree-page-mountpoint',
865 'apps-pagetree-page-mountpoint-hideinmenu',
866 'apps-pagetree-page-mountpoint-root',
867 'apps-pagetree-page-no-icon-found',
868 'apps-pagetree-page-no-icon-found-hideinmenu',
869 'apps-pagetree-page-no-icon-found-root',
870 'apps-pagetree-page-not-in-menu',
871 'apps-pagetree-page-recycler',
872 'apps-pagetree-page-shortcut',
873 'apps-pagetree-page-shortcut-external',
874 'apps-pagetree-page-shortcut-external-hideinmenu',
875 'apps-pagetree-page-shortcut-external-root',
876 'apps-pagetree-page-shortcut-hideinmenu',
877 'apps-pagetree-page-shortcut-root',
878 'apps-pagetree-root',
879 'apps-pagetree-spacer',
880 'apps-tcatree-select-recursive',
881 'apps-toolbar-menu-actions',
882 'apps-toolbar-menu-cache',
883 'apps-toolbar-menu-opendocs',
884 'apps-toolbar-menu-search',
885 'apps-toolbar-menu-shortcut',
886 'apps-toolbar-menu-workspace',
887 'mimetypes-compressed',
888 'mimetypes-excel',
889 'mimetypes-media-audio',
890 'mimetypes-media-flash',
891 'mimetypes-media-image',
892 'mimetypes-media-video',
893 'mimetypes-other-other',
894 'mimetypes-pdf',
895 'mimetypes-powerpoint',
896 'mimetypes-text-css',
897 'mimetypes-text-csv',
898 'mimetypes-text-html',
899 'mimetypes-text-js',
900 'mimetypes-text-php',
901 'mimetypes-text-text',
902 'mimetypes-word',
903 'mimetypes-x-content-divider',
904 'mimetypes-x-content-domain',
905 'mimetypes-x-content-form',
906 'mimetypes-x-content-form-search',
907 'mimetypes-x-content-header',
908 'mimetypes-x-content-html',
909 'mimetypes-x-content-image',
910 'mimetypes-x-content-link',
911 'mimetypes-x-content-list-bullets',
912 'mimetypes-x-content-list-files',
913 'mimetypes-x-content-login',
914 'mimetypes-x-content-menu',
915 'mimetypes-x-content-multimedia',
916 'mimetypes-x-content-page-language-overlay',
917 'mimetypes-x-content-plugin',
918 'mimetypes-x-content-script',
919 'mimetypes-x-content-table',
920 'mimetypes-x-content-template',
921 'mimetypes-x-content-template-extension',
922 'mimetypes-x-content-template-static',
923 'mimetypes-x-content-text',
924 'mimetypes-x-content-text-picture',
925 'mimetypes-x-sys_action',
926 'mimetypes-x-sys_category',
927 'mimetypes-x-sys_language',
928 'mimetypes-x-sys_news',
929 'mimetypes-x-sys_workspace',
930 'mimetypes-x_belayout',
931 'status-dialog-error',
932 'status-dialog-information',
933 'status-dialog-notification',
934 'status-dialog-ok',
935 'status-dialog-warning',
936 'status-overlay-access-restricted',
937 'status-overlay-deleted',
938 'status-overlay-hidden',
939 'status-overlay-icon-missing',
940 'status-overlay-includes-subpages',
941 'status-overlay-locked',
942 'status-overlay-scheduled',
943 'status-overlay-scheduled-future-end',
944 'status-overlay-translated',
945 'status-status-checked',
946 'status-status-current',
947 'status-status-edit-read-only',
948 'status-status-icon-missing',
949 'status-status-locked',
950 'status-status-permission-denied',
951 'status-status-permission-granted',
952 'status-status-readonly',
953 'status-status-reference-hard',
954 'status-status-reference-soft',
955 'status-status-sorting-asc',
956 'status-status-sorting-desc',
957 'status-status-sorting-light-asc',
958 'status-status-sorting-light-desc',
959 'status-status-workspace-draft',
960 'status-system-extension-required',
961 'status-user-admin',
962 'status-user-backend',
963 'status-user-frontend',
964 'status-user-group-backend',
965 'status-user-group-frontend',
966 'status-version-1',
967 'status-version-2',
968 'status-version-3',
969 'status-version-4',
970 'status-version-5',
971 'status-version-6',
972 'status-version-7',
973 'status-version-8',
974 'status-version-9',
975 'status-version-10',
976 'status-version-11',
977 'status-version-12',
978 'status-version-13',
979 'status-version-14',
980 'status-version-15',
981 'status-version-16',
982 'status-version-17',
983 'status-version-18',
984 'status-version-19',
985 'status-version-20',
986 'status-version-21',
987 'status-version-22',
988 'status-version-23',
989 'status-version-24',
990 'status-version-25',
991 'status-version-26',
992 'status-version-27',
993 'status-version-28',
994 'status-version-29',
995 'status-version-30',
996 'status-version-31',
997 'status-version-32',
998 'status-version-33',
999 'status-version-34',
1000 'status-version-35',
1001 'status-version-36',
1002 'status-version-37',
1003 'status-version-38',
1004 'status-version-39',
1005 'status-version-40',
1006 'status-version-41',
1007 'status-version-42',
1008 'status-version-43',
1009 'status-version-44',
1010 'status-version-45',
1011 'status-version-46',
1012 'status-version-47',
1013 'status-version-48',
1014 'status-version-49',
1015 'status-version-50',
1016 'status-version-no-version',
1017 'status-warning-in-use',
1018 'status-warning-lock'
1019 );
1020
1021 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
1022 'deleted',
1023 'hidden',
1024 'starttime',
1025 'endtime',
1026 'futureendtime',
1027 'fe_group',
1028 'protectedSection'
1029 );
1030 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
1031 'hidden' => 'status-overlay-hidden',
1032 'fe_group' => 'status-overlay-access-restricted',
1033 'starttime' => 'status-overlay-scheduled',
1034 'endtime' => 'status-overlay-scheduled',
1035 'futureendtime' => 'status-overlay-scheduled-future-end',
1036 'readonly' => 'status-overlay-locked',
1037 'deleted' => 'status-overlay-deleted',
1038 'missing' => 'status-overlay-missing',
1039 'translated' => 'status-overlay-translated',
1040 'protectedSection' => 'status-overlay-includes-subpages'
1041 );
1042 ?>