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