[TASK] Editors do not have rights to edit file metadata
[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 * @see tslib_fe::includeTCA(), typo3/init.php, t3lib/stddb/load_ext_tables.php
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 // Initialize the additional configuration of the table 'pages':
188 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('pages');
189 /**
190 * Table "be_users":
191 * Backend Users for TYPO3.
192 * This is only the 'header' part (ctrl). The full configuration is
193 * found in t3lib/stddb/tbl_be.php
194 */
195 $TCA['be_users'] = array(
196 'ctrl' => array(
197 'label' => 'username',
198 'tstamp' => 'tstamp',
199 'title' => 'LLL:EXT:lang/locallang_tca.php:be_users',
200 'crdate' => 'crdate',
201 'cruser_id' => 'cruser_id',
202 'delete' => 'deleted',
203 'adminOnly' => 1,
204 // Only admin users can edit
205 'rootLevel' => 1,
206 'default_sortby' => 'ORDER BY admin, username',
207 'enablecolumns' => array(
208 'disabled' => 'disable',
209 'starttime' => 'starttime',
210 'endtime' => 'endtime'
211 ),
212 'type' => 'admin',
213 'typeicon_column' => 'admin',
214 'typeicons' => array(
215 '0' => 'be_users.gif',
216 '1' => 'be_users_admin.gif'
217 ),
218 'typeicon_classes' => array(
219 '0' => 'status-user-backend',
220 '1' => 'status-user-admin',
221 'default' => 'status-user-backend'
222 ),
223 'mainpalette' => '1',
224 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods',
225 'dividers2tabs' => TRUE,
226 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
227 'versioningWS_alwaysAllowLiveEdit' => TRUE,
228 'searchFields' => 'username,email,realName'
229 )
230 );
231 /**
232 * Table "be_groups":
233 * Backend Usergroups for TYPO3.
234 * This is only the 'header' part (ctrl).
235 * The full configuration is found in t3lib/stddb/tbl_be.php
236 */
237 $TCA['be_groups'] = array(
238 'ctrl' => array(
239 'label' => 'title',
240 'tstamp' => 'tstamp',
241 'crdate' => 'crdate',
242 'cruser_id' => 'cruser_id',
243 'delete' => 'deleted',
244 'default_sortby' => 'ORDER BY title',
245 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
246 'adminOnly' => 1,
247 'rootLevel' => 1,
248 'type' => 'inc_access_lists',
249 'typeicon_column' => 'inc_access_lists',
250 'typeicons' => array(
251 '1' => 'be_groups_lists.gif'
252 ),
253 'typeicon_classes' => array(
254 'default' => 'status-user-group-backend'
255 ),
256 'enablecolumns' => array(
257 'disabled' => 'hidden'
258 ),
259 'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups',
260 'useColumnsForDefaultValues' => 'lockToDomain, fileoper_perms',
261 'dividers2tabs' => TRUE,
262 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
263 'versioningWS_alwaysAllowLiveEdit' => TRUE,
264 'searchFields' => 'title'
265 )
266 );
267 /**
268 * Table "sys_filemounts":
269 * Defines filepaths on the server which can be mounted for users so they can
270 * upload and manage files online by eg. the Filelist module
271 * This is only the 'header' part (ctrl). The full configuration is found
272 * in t3lib/stddb/tbl_be.php
273 */
274 $TCA['sys_filemounts'] = array(
275 'ctrl' => array(
276 'label' => 'title',
277 'tstamp' => 'tstamp',
278 'sortby' => 'sorting',
279 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
280 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts',
281 'adminOnly' => 1,
282 'rootLevel' => 1,
283 'delete' => 'deleted',
284 'enablecolumns' => array(
285 'disabled' => 'hidden'
286 ),
287 'iconfile' => '_icon_ftp.gif',
288 'useColumnsForDefaultValues' => 'path,base',
289 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
290 'versioningWS_alwaysAllowLiveEdit' => TRUE,
291 'searchFields' => 'title,path'
292 )
293 );
294 /**
295 * Table "sys_category":
296 * Represents all categories to be used for record categorization
297 */
298 $TCA['sys_category'] = array(
299 'ctrl' => array(
300 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_category',
301 'label' => 'title',
302 'tstamp' => 'tstamp',
303 'crdate' => 'crdate',
304 'cruser_id' => 'cruser_id',
305 'delete' => 'deleted',
306 'default_sortby' => 'ORDER BY title ASC',
307 'dividers2tabs' => TRUE,
308 'versioningWS' => 2,
309 'versioning_followPages' => TRUE,
310 'origUid' => 't3_origuid',
311 'languageField' => 'sys_language_uid',
312 'transOrigPointerField' => 'l10n_parent',
313 'transOrigDiffSourceField' => 'l10n_diffsource',
314 'searchFields' => 'title,description',
315 'enablecolumns' => array(
316 'disabled' => 'hidden',
317 'starttime' => 'starttime',
318 'endtime' => 'endtime'
319 ),
320 'dynamicConfigFile' => 'T3LIB:tca_sys_category.php',
321 'typeicon_classes' => array(
322 'default' => 'mimetypes-x-sys_category'
323 )
324 )
325 );
326 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category');
327 /**
328 * Table "sys_collection":
329 */
330 $TCA['sys_collection'] = array(
331 'ctrl' => array(
332 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_collection',
333 'label' => 'title',
334 'tstamp' => 'tstamp',
335 'crdate' => 'crdate',
336 'cruser_id' => 'cruser_id',
337 'versioningWS' => TRUE,
338 'origUid' => 't3_origuid',
339 'languageField' => 'sys_language_uid',
340 'transOrigPointerField' => 'l10n_parent',
341 'transOrigDiffSourceField' => 'l10n_diffsource',
342 'default_sortby' => 'ORDER BY crdate',
343 'delete' => 'deleted',
344 'type' => 'type',
345 'rootLevel' => -1,
346 'searchFields' => 'title,description',
347 'typeicon_column' => 'type',
348 'typeicon_classes' => array(
349 'default' => 'apps-clipboard-list',
350 'static' => 'apps-clipboard-list',
351 'filter' => 'actions-system-tree-search-open'
352 ),
353 'enablecolumns' => array(
354 'disabled' => 'hidden',
355 'starttime' => 'starttime',
356 'endtime' => 'endtime',
357 'fe_group' => 'fe_group'
358 ),
359 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
360 )
361 );
362 /**
363 * Table "sys_file_storage":
364 * defines a root-point of a file storage, that is like a mount point.
365 * each storage is attached to a driver (local, webdav, amazons3) and
366 * thus is the entry-point for all files
367 */
368 $TCA['sys_file_storage'] = array(
369 'ctrl' => array(
370 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage',
371 'label' => 'name',
372 'tstamp' => 'tstamp',
373 'crdate' => 'crdate',
374 'cruser_id' => 'cruser_id',
375 'default_sortby' => 'ORDER BY name',
376 'delete' => 'deleted',
377 'rootLevel' => TRUE,
378 'versioningWS_alwaysAllowLiveEdit' => TRUE,
379 // only have LIVE records of file storages
380 'enablecolumns' => array(
381 'disabled' => 'hidden'
382 ),
383 'dividers2tabs' => TRUE,
384 'requestUpdate' => 'driver',
385 'iconfile' => '_icon_ftp.gif',
386 'dynamicConfigFile' => 'T3LIB:tca_sys_file_storage.php'
387 )
388 );
389 /**
390 * Table "sys_file":
391 * Represents all files that are tracked by TYPO3
392 * which are assets, single entries of files with additional metadata
393 */
394 $TCA['sys_file'] = array(
395 'ctrl' => array(
396 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file',
397 'label' => 'name',
398 'tstamp' => 'tstamp',
399 'crdate' => 'crdate',
400 'cruser_id' => 'cruser_id',
401 'type' => 'type',
402 'hideTable' => TRUE,
403 'rootLevel' => TRUE,
404 'versioningWS' => TRUE,
405 'origUid' => 't3_origuid',
406 'default_sortby' => 'ORDER BY crdate DESC',
407 'delete' => 'deleted',
408 'dividers2tabs' => TRUE,
409 'typeicon_column' => 'type',
410 'typeicon_classes' => array(
411 '1' => 'mimetypes-text-text',
412 '2' => 'mimetypes-media-image',
413 '3' => 'mimetypes-media-audio',
414 '4' => 'mimetypes-media-video',
415 '5' => 'mimetypes-application',
416 'default' => 'mimetypes-other-other'
417 ),
418 'security' => array(
419 'ignoreWebMountRestriction' => TRUE,
420 'ignoreRootLevelRestriction' => TRUE,
421 ),
422 'dynamicConfigFile' => 'T3LIB:tca_sys_file.php'
423 )
424 );
425 /**
426 * Table "sys_file_reference":
427 * Is a single usage of a sys_file record somewhere in the installation
428 * Is kind of like a MM-table between sys_file and e.g. tt_content:image that
429 * is shown up in TCA so additional metadata can be added for this specific
430 * kind of usage
431 */
432 $TCA['sys_file_reference'] = array(
433 'ctrl' => array(
434 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_reference',
435 'label' => 'uid',
436 'tstamp' => 'tstamp',
437 'crdate' => 'crdate',
438 'cruser_id' => 'cruser_id',
439 'type' => 'uid_local:type',
440 'hideTable' => TRUE,
441 'rootLevel' => TRUE,
442 'sortby' => 'sorting',
443 'delete' => 'deleted',
444 'versioningWS' => TRUE,
445 'languageField' => 'sys_language_uid',
446 'transOrigPointerField' => 'l10n_parent',
447 'transOrigDiffSourceField' => 'l10n_diffsource',
448 // records can and should be edited in workspaces
449 'shadowColumnsForNewPlaceholders' => 'tablenames,fieldname,uid_local,uid_foreign',
450 'enablecolumns' => array(
451 'disabled' => 'hidden'
452 ),
453 'security' => array(
454 'ignoreWebMountRestriction' => TRUE,
455 'ignoreRootLevelRestriction' => TRUE,
456 ),
457 'dynamicConfigFile' => 'T3LIB:tca_sys_file_reference.php'
458 )
459 );
460 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_reference');
461 /**
462 * Table "sys_file_collection":
463 * Represents a list of sys_file records
464 */
465 $TCA['sys_file_collection'] = array(
466 'ctrl' => array(
467 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_collection',
468 'label' => 'title',
469 'tstamp' => 'tstamp',
470 'crdate' => 'crdate',
471 'cruser_id' => 'cruser_id',
472 'versioningWS' => TRUE,
473 'origUid' => 't3_origuid',
474 'languageField' => 'sys_language_uid',
475 'transOrigPointerField' => 'l10n_parent',
476 'transOrigDiffSourceField' => 'l10n_diffsource',
477 'default_sortby' => 'ORDER BY crdate',
478 'delete' => 'deleted',
479 'rootlevel' => -1,
480 'type' => 'type',
481 'typeicon_column' => 'type',
482 'typeicon_classes' => array(
483 'default' => 'apps-filetree-folder-media',
484 'static' => 'apps-clipboard-images',
485 'folder' => 'apps-filetree-folder-media'
486 ),
487 'enablecolumns' => array(
488 'disabled' => 'hidden',
489 'starttime' => 'starttime',
490 'endtime' => 'endtime'
491 ),
492 'dynamicConfigFile' => 'T3LIB:tca_sys_file_collection.php'
493 )
494 );
495 t3lib_extMgm::allowTableOnStandardPages('sys_file_collection');
496 /**
497 * Table "sys_history":
498 * Holds history records, the config part is defined in t3lib/stddb/tbl_be.php
499 */
500 $TCA['sys_history'] = array(
501 'ctrl' => array(
502 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_history',
503 'label' => 'tablename',
504 'tstamp' => 'tstamp',
505 'adminOnly' => TRUE,
506 'rootLevel' => TRUE,
507 'hideTable' => TRUE,
508 'default_sortby' => 'uid DESC',
509 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
510 )
511 );
512 /**
513 * Table "sys_languages":
514 * Defines possible languages used for translation of records in the system
515 * This is only the 'header' part (ctrl). The full configuration is found
516 * in t3lib/stddb/tbl_be.php
517 */
518 $TCA['sys_language'] = array(
519 'ctrl' => array(
520 'label' => 'title',
521 'tstamp' => 'tstamp',
522 'default_sortby' => 'ORDER BY title',
523 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_language',
524 'adminOnly' => 1,
525 'rootLevel' => 1,
526 'enablecolumns' => array(
527 'disabled' => 'hidden'
528 ),
529 'typeicon_classes' => array(
530 'default' => 'mimetypes-x-sys_language'
531 ),
532 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
533 'versioningWS_alwaysAllowLiveEdit' => TRUE
534 )
535 );
536 /**
537 * Table "sys_log":
538 * Holds log records, the config part is defined in t3lib/stddb/tbl_be.php
539 */
540 $TCA['sys_log'] = array(
541 'ctrl' => array(
542 'title' => 'LLL:EXT:lang/locallang_tca.xlf:sys_log',
543 'label' => 'details',
544 'tstamp' => 'tstamp',
545 'adminOnly' => TRUE,
546 'rootLevel' => TRUE,
547 'hideTable' => TRUE,
548 'default_sortby' => 'uid DESC',
549 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
550 )
551 );
552 /**
553 * Table "sys_news":
554 * Holds news records to be displayed in the login screen
555 * This is only the 'header' part (ctrl). The full configuration is found
556 * in t3lib/stddb/tbl_be.php
557 */
558 $TCA['sys_news'] = array(
559 'ctrl' => array(
560 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_news',
561 'label' => 'title',
562 'tstamp' => 'tstamp',
563 'crdate' => 'crdate',
564 'cruser_id' => 'cruser_id',
565 'adminOnly' => TRUE,
566 'rootLevel' => TRUE,
567 'delete' => 'deleted',
568 'enablecolumns' => array(
569 'disabled' => 'hidden',
570 'starttime' => 'starttime',
571 'endtime' => 'endtime'
572 ),
573 'default_sortby' => 'crdate DESC',
574 'typeicon_classes' => array(
575 'default' => 'mimetypes-x-sys_news'
576 ),
577 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
578 'dividers2tabs' => TRUE
579 )
580 );
581 /**
582 * $TBE_MODULES contains the structure of the backend modules as they are
583 * arranged in main- and sub-modules. Every entry in this array represents a
584 * menu item on either first (key) or second level (value from list) in the
585 * left menu in the TYPO3 backend
586 * For information about adding modules to TYPO3 you should consult the
587 * documentation found in "Inside TYPO3"
588 */
589 $TBE_MODULES = array(
590 'web' => 'list',
591 'file' => '',
592 'user' => '',
593 'tools' => '',
594 'help' => ''
595 );
596 // Register the pagetree core navigation component
597 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
598 /**
599 * $TBE_STYLES configures backend styles and colors; Basically this contains
600 * all the values that can be used to create new skins for TYPO3.
601 * For information about making skins to TYPO3 you should consult the
602 * documentation found in "Inside TYPO3"
603 */
604 $TBE_STYLES = array(
605 'colorschemes' => array(
606 '0' => '#E4E0DB,#CBC7C3,#EDE9E5'
607 ),
608 'borderschemes' => array(
609 '0' => array('border:solid 1px black;', 5)
610 )
611 );
612 /**
613 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
614 * For information about using the CSH API in TYPO3 you should consult the
615 * documentation found in "Inside TYPO3"
616 */
617 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xml');
618 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xml');
619 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xml');
620 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xml');
621 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xml');
622 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xml');
623 // General Core
624 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xml');
625 // Extension manager
626 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xml');
627 // Web > Info
628 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xml');
629 // Web > Func
630 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xml');
631 // Labels for TYPO3 4.5 and greater.
632 // These labels override the ones set above, while still falling back to the original labels
633 // if no translation is available.
634 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xml'][] = 'EXT:lang/4.5/locallang_csh_pages.xml';
635 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xml'][] = 'EXT:lang/4.5/locallang_csh_corebe.xml';
636 /**
637 * $FILEICONS defines icons for the various file-formats
638 */
639 $FILEICONS = array(
640 'txt' => 'txt.gif',
641 'pdf' => 'pdf.gif',
642 'doc' => 'doc.gif',
643 'ai' => 'ai.gif',
644 'bmp' => 'bmp.gif',
645 'tif' => 'tif.gif',
646 'htm' => 'htm.gif',
647 'html' => 'html.gif',
648 'pcd' => 'pcd.gif',
649 'gif' => 'gif.gif',
650 'jpg' => 'jpg.gif',
651 'jpeg' => 'jpg.gif',
652 'mpg' => 'mpg.gif',
653 'mpeg' => 'mpeg.gif',
654 'exe' => 'exe.gif',
655 'com' => 'exe.gif',
656 'zip' => 'zip.gif',
657 'tgz' => 'zip.gif',
658 'gz' => 'zip.gif',
659 'php3' => 'php3.gif',
660 'php4' => 'php3.gif',
661 'php5' => 'php3.gif',
662 'php6' => 'php3.gif',
663 'php' => 'php3.gif',
664 'ppt' => 'ppt.gif',
665 'ttf' => 'ttf.gif',
666 'pcx' => 'pcx.gif',
667 'png' => 'png.gif',
668 'tga' => 'tga.gif',
669 'class' => 'java.gif',
670 'sxc' => 'sxc.gif',
671 'sxw' => 'sxw.gif',
672 'xls' => 'xls.gif',
673 'swf' => 'swf.gif',
674 'swa' => 'flash.gif',
675 'dcr' => 'flash.gif',
676 'wav' => 'wav.gif',
677 'mp3' => 'mp3.gif',
678 'avi' => 'avi.gif',
679 'au' => 'au.gif',
680 'mov' => 'mov.gif',
681 '3ds' => '3ds.gif',
682 'csv' => 'csv.gif',
683 'ico' => 'ico.gif',
684 'max' => 'max.gif',
685 'ps' => 'ps.gif',
686 'tmpl' => 'tmpl.gif',
687 'xls' => 'xls.gif',
688 'fh3' => 'fh3.gif',
689 'inc' => 'inc.gif',
690 'mid' => 'mid.gif',
691 'psd' => 'psd.gif',
692 'xml' => 'xml.gif',
693 'rtf' => 'rtf.gif',
694 't3x' => 't3x.gif',
695 't3d' => 't3d.gif',
696 'cdr' => 'cdr.gif',
697 'dtd' => 'dtd.gif',
698 'sgml' => 'sgml.gif',
699 'ani' => 'ani.gif',
700 'css' => 'css.gif',
701 'eps' => 'eps.gif',
702 'js' => 'js.gif',
703 'wrl' => 'wrl.gif',
704 'default' => 'default.gif'
705 );
706 /**
707 * Backend sprite icon-names
708 */
709 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
710 'actions-document-close',
711 'actions-document-duplicates-select',
712 'actions-document-edit-access',
713 'actions-document-export-csv',
714 'actions-document-export-t3d',
715 'actions-document-history-open',
716 'actions-document-import-t3d',
717 'actions-document-info',
718 'actions-document-localize',
719 'actions-document-move',
720 'actions-document-new',
721 'actions-document-open',
722 'actions-document-open-read-only',
723 'actions-document-paste-after',
724 'actions-document-paste-into',
725 'actions-document-save',
726 'actions-document-save-close',
727 'actions-document-save-new',
728 'actions-document-save-view',
729 'actions-document-select',
730 'actions-document-synchronize',
731 'actions-document-view',
732 'actions-edit-add',
733 'actions-edit-copy',
734 'actions-edit-copy-release',
735 'actions-edit-cut',
736 'actions-edit-cut-release',
737 'actions-edit-delete',
738 'actions-edit-hide',
739 'actions-edit-insert-default',
740 'actions-edit-localize-status-high',
741 'actions-edit-localize-status-low',
742 'actions-edit-merge-localization',
743 'actions-edit-pick-date',
744 'actions-edit-rename',
745 'actions-edit-restore',
746 'actions-edit-undelete-edit',
747 'actions-edit-undo',
748 'actions-edit-unhide',
749 'actions-edit-upload',
750 'actions-input-clear',
751 'actions-insert-record',
752 'actions-insert-reference',
753 'actions-message-error-close',
754 'actions-message-information-close',
755 'actions-message-notice-close',
756 'actions-message-ok-close',
757 'actions-message-warning-close',
758 'actions-move-down',
759 'actions-move-left',
760 'actions-move-move',
761 'actions-move-right',
762 'actions-move-to-bottom',
763 'actions-move-to-top',
764 'actions-move-up',
765 'actions-page-move',
766 'actions-page-new',
767 'actions-page-open',
768 'actions-selection-delete',
769 'actions-system-backend-user-emulate',
770 'actions-system-backend-user-switch',
771 'actions-system-cache-clear',
772 'actions-system-cache-clear-impact-high',
773 'actions-system-cache-clear-impact-low',
774 'actions-system-cache-clear-impact-medium',
775 'actions-system-cache-clear-rte',
776 'actions-system-extension-configure',
777 'actions-system-extension-documentation',
778 'actions-system-extension-download',
779 'actions-system-extension-import',
780 'actions-system-extension-install',
781 'actions-system-extension-sqldump',
782 'actions-system-extension-uninstall',
783 'actions-system-extension-update',
784 'actions-system-help-open',
785 'actions-system-list-open',
786 'actions-system-options-view',
787 'actions-system-pagemodule-open',
788 'actions-system-refresh',
789 'actions-system-shortcut-new',
790 'actions-system-tree-search-open',
791 'actions-system-typoscript-documentation',
792 'actions-system-typoscript-documentation-open',
793 'actions-template-new',
794 'actions-version-document-remove',
795 'actions-version-page-open',
796 'actions-version-swap-version',
797 'actions-version-swap-workspace',
798 'actions-version-workspace-preview',
799 'actions-version-workspace-sendtostage',
800 'actions-view-go-back',
801 'actions-view-go-down',
802 'actions-view-go-forward',
803 'actions-view-go-up',
804 'actions-view-list-collapse',
805 'actions-view-list-expand',
806 'actions-view-paging-first',
807 'actions-view-paging-first-disabled',
808 'actions-view-paging-last',
809 'actions-view-paging-last-disabled',
810 'actions-view-paging-next',
811 'actions-view-paging-next-disabled',
812 'actions-view-paging-previous',
813 'actions-view-paging-previous-disabled',
814 'actions-view-table-collapse',
815 'actions-view-table-expand',
816 'actions-window-open',
817 'apps-clipboard-images',
818 'apps-clipboard-list',
819 'apps-filetree-folder-add',
820 'apps-filetree-folder-default',
821 'apps-filetree-folder-list',
822 'apps-filetree-folder-locked',
823 'apps-filetree-folder-media',
824 'apps-filetree-folder-news',
825 'apps-filetree-folder-opened',
826 'apps-filetree-folder-recycler',
827 'apps-filetree-folder-temp',
828 'apps-filetree-folder-user',
829 'apps-filetree-mount',
830 'apps-filetree-root',
831 'apps-irre-collapsed',
832 'apps-irre-expanded',
833 'apps-pagetree-backend-user',
834 'apps-pagetree-backend-user-hideinmenu',
835 'apps-pagetree-collapse',
836 'apps-pagetree-drag-copy-above',
837 'apps-pagetree-drag-copy-below',
838 'apps-pagetree-drag-move-above',
839 'apps-pagetree-drag-move-below',
840 'apps-pagetree-drag-move-between',
841 'apps-pagetree-drag-move-into',
842 'apps-pagetree-drag-new-between',
843 'apps-pagetree-drag-new-inside',
844 'apps-pagetree-drag-place-denied',
845 'apps-pagetree-expand',
846 'apps-pagetree-folder-contains-approve',
847 'apps-pagetree-folder-contains-board',
848 'apps-pagetree-folder-contains-fe_users',
849 'apps-pagetree-folder-contains-news',
850 'apps-pagetree-folder-contains-shop',
851 'apps-pagetree-folder-default',
852 'apps-pagetree-page-advanced',
853 'apps-pagetree-page-advanced-hideinmenu',
854 'apps-pagetree-page-advanced-root',
855 'apps-pagetree-page-backend-users',
856 'apps-pagetree-page-backend-users-hideinmenu',
857 'apps-pagetree-page-backend-users-root',
858 'apps-pagetree-page-default',
859 'apps-pagetree-page-domain',
860 'apps-pagetree-page-frontend-user',
861 'apps-pagetree-page-frontend-user-hideinmenu',
862 'apps-pagetree-page-frontend-user-root',
863 'apps-pagetree-page-frontend-users',
864 'apps-pagetree-page-frontend-users-hideinmenu',
865 'apps-pagetree-page-frontend-users-root',
866 'apps-pagetree-page-mountpoint',
867 'apps-pagetree-page-mountpoint-hideinmenu',
868 'apps-pagetree-page-mountpoint-root',
869 'apps-pagetree-page-no-icon-found',
870 'apps-pagetree-page-no-icon-found-hideinmenu',
871 'apps-pagetree-page-no-icon-found-root',
872 'apps-pagetree-page-not-in-menu',
873 'apps-pagetree-page-recycler',
874 'apps-pagetree-page-shortcut',
875 'apps-pagetree-page-shortcut-external',
876 'apps-pagetree-page-shortcut-external-hideinmenu',
877 'apps-pagetree-page-shortcut-external-root',
878 'apps-pagetree-page-shortcut-hideinmenu',
879 'apps-pagetree-page-shortcut-root',
880 'apps-pagetree-root',
881 'apps-pagetree-spacer',
882 'apps-tcatree-select-recursive',
883 'apps-toolbar-menu-actions',
884 'apps-toolbar-menu-cache',
885 'apps-toolbar-menu-opendocs',
886 'apps-toolbar-menu-search',
887 'apps-toolbar-menu-shortcut',
888 'apps-toolbar-menu-workspace',
889 'mimetypes-compressed',
890 'mimetypes-excel',
891 'mimetypes-media-audio',
892 'mimetypes-media-flash',
893 'mimetypes-media-image',
894 'mimetypes-media-video',
895 'mimetypes-other-other',
896 'mimetypes-pdf',
897 'mimetypes-powerpoint',
898 'mimetypes-text-css',
899 'mimetypes-text-csv',
900 'mimetypes-text-html',
901 'mimetypes-text-js',
902 'mimetypes-text-php',
903 'mimetypes-text-text',
904 'mimetypes-word',
905 'mimetypes-x-content-divider',
906 'mimetypes-x-content-domain',
907 'mimetypes-x-content-form',
908 'mimetypes-x-content-form-search',
909 'mimetypes-x-content-header',
910 'mimetypes-x-content-html',
911 'mimetypes-x-content-image',
912 'mimetypes-x-content-link',
913 'mimetypes-x-content-list-bullets',
914 'mimetypes-x-content-list-files',
915 'mimetypes-x-content-login',
916 'mimetypes-x-content-menu',
917 'mimetypes-x-content-multimedia',
918 'mimetypes-x-content-page-language-overlay',
919 'mimetypes-x-content-plugin',
920 'mimetypes-x-content-script',
921 'mimetypes-x-content-table',
922 'mimetypes-x-content-template',
923 'mimetypes-x-content-template-extension',
924 'mimetypes-x-content-template-static',
925 'mimetypes-x-content-text',
926 'mimetypes-x-content-text-picture',
927 'mimetypes-x-sys_action',
928 'mimetypes-x-sys_category',
929 'mimetypes-x-sys_language',
930 'mimetypes-x-sys_news',
931 'mimetypes-x-sys_workspace',
932 'mimetypes-x_belayout',
933 'status-dialog-error',
934 'status-dialog-information',
935 'status-dialog-notification',
936 'status-dialog-ok',
937 'status-dialog-warning',
938 'status-overlay-access-restricted',
939 'status-overlay-deleted',
940 'status-overlay-hidden',
941 'status-overlay-icon-missing',
942 'status-overlay-includes-subpages',
943 'status-overlay-locked',
944 'status-overlay-scheduled',
945 'status-overlay-scheduled-future-end',
946 'status-overlay-translated',
947 'status-status-checked',
948 'status-status-current',
949 'status-status-edit-read-only',
950 'status-status-icon-missing',
951 'status-status-locked',
952 'status-status-permission-denied',
953 'status-status-permission-granted',
954 'status-status-readonly',
955 'status-status-reference-hard',
956 'status-status-reference-soft',
957 'status-status-sorting-asc',
958 'status-status-sorting-desc',
959 'status-status-sorting-light-asc',
960 'status-status-sorting-light-desc',
961 'status-status-workspace-draft',
962 'status-system-extension-required',
963 'status-user-admin',
964 'status-user-backend',
965 'status-user-frontend',
966 'status-user-group-backend',
967 'status-user-group-frontend',
968 'status-version-1',
969 'status-version-2',
970 'status-version-3',
971 'status-version-4',
972 'status-version-5',
973 'status-version-6',
974 'status-version-7',
975 'status-version-8',
976 'status-version-9',
977 'status-version-10',
978 'status-version-11',
979 'status-version-12',
980 'status-version-13',
981 'status-version-14',
982 'status-version-15',
983 'status-version-16',
984 'status-version-17',
985 'status-version-18',
986 'status-version-19',
987 'status-version-20',
988 'status-version-21',
989 'status-version-22',
990 'status-version-23',
991 'status-version-24',
992 'status-version-25',
993 'status-version-26',
994 'status-version-27',
995 'status-version-28',
996 'status-version-29',
997 'status-version-30',
998 'status-version-31',
999 'status-version-32',
1000 'status-version-33',
1001 'status-version-34',
1002 'status-version-35',
1003 'status-version-36',
1004 'status-version-37',
1005 'status-version-38',
1006 'status-version-39',
1007 'status-version-40',
1008 'status-version-41',
1009 'status-version-42',
1010 'status-version-43',
1011 'status-version-44',
1012 'status-version-45',
1013 'status-version-46',
1014 'status-version-47',
1015 'status-version-48',
1016 'status-version-49',
1017 'status-version-50',
1018 'status-version-no-version',
1019 'status-warning-in-use',
1020 'status-warning-lock'
1021 );
1022
1023 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
1024 'deleted',
1025 'hidden',
1026 'starttime',
1027 'endtime',
1028 'futureendtime',
1029 'fe_group',
1030 'protectedSection'
1031 );
1032 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
1033 'hidden' => 'status-overlay-hidden',
1034 'fe_group' => 'status-overlay-access-restricted',
1035 'starttime' => 'status-overlay-scheduled',
1036 'endtime' => 'status-overlay-scheduled',
1037 'futureendtime' => 'status-overlay-scheduled-future-end',
1038 'readonly' => 'status-overlay-locked',
1039 'deleted' => 'status-overlay-deleted',
1040 'missing' => 'status-overlay-missing',
1041 'translated' => 'status-overlay-translated',
1042 'protectedSection' => 'status-overlay-includes-subpages'
1043 );
1044 ?>