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