[BUGFIX] Sprite manager cache race condition
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.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 * Dynamic configuration of the system-related tables, typ. sys_* series
29 *
30 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
31 */
32
33 // fe_users
34 // FrontEnd users - login on the website
35 $TCA['fe_users'] = array(
36 'ctrl' => $TCA['fe_users']['ctrl'],
37 'interface' => array(
38 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,first_name,middle_name,last_name,title,company,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime,lastlogin',
39 ),
40 'feInterface' => $TCA['fe_users']['feInterface'],
41 'columns' => array(
42 'username' => array(
43 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_users.username',
44 'config' => array(
45 'type' => 'input',
46 'size' => '20',
47 'max' => '50',
48 'eval' => 'nospace,lower,uniqueInPid,required'
49 )
50 ),
51 'password' => array(
52 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_users.password',
53 'config' => array(
54 'type' => 'input',
55 'size' => '10',
56 'max' => '40',
57 'eval' => 'nospace,required,password'
58 )
59 ),
60 'usergroup' => array(
61 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_users.usergroup',
62 'config' => array(
63 'type' => 'select',
64 'foreign_table' => 'fe_groups',
65 'foreign_table_where' => 'ORDER BY fe_groups.title',
66 'size' => '6',
67 'minitems' => '1',
68 'maxitems' => '50'
69 )
70 ),
71 'lockToDomain' => array(
72 'exclude' => 1,
73 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_users.lockToDomain',
74 'config' => array(
75 'type' => 'input',
76 'size' => '20',
77 'eval' => 'trim',
78 'max' => '50',
79 'softref' => 'substitute'
80 )
81 ),
82 'name' => array(
83 'exclude' => 1,
84 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.name',
85 'config' => array(
86 'type' => 'input',
87 'size' => '40',
88 'eval' => 'trim',
89 'max' => '80'
90 )
91 ),
92 'first_name' => array(
93 'exclude' => 1,
94 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.first_name',
95 'config' => array(
96 'type' => 'input',
97 'size' => '25',
98 'eval' => 'trim',
99 'max' => '50'
100 )
101 ),
102 'middle_name' => array(
103 'exclude' => 1,
104 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.middle_name',
105 'config' => array(
106 'type' => 'input',
107 'size' => '25',
108 'eval' => 'trim',
109 'max' => '50'
110 )
111 ),
112 'last_name' => array(
113 'exclude' => 1,
114 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.last_name',
115 'config' => array(
116 'type' => 'input',
117 'size' => '25',
118 'eval' => 'trim',
119 'max' => '50'
120 )
121 ),
122 'address' => array(
123 'exclude' => 1,
124 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.address',
125 'config' => array(
126 'type' => 'text',
127 'cols' => '20',
128 'rows' => '3'
129 )
130 ),
131 'telephone' => array(
132 'exclude' => 1,
133 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.phone',
134 'config' => array(
135 'type' => 'input',
136 'eval' => 'trim',
137 'size' => '20',
138 'max' => '20'
139 )
140 ),
141 'fax' => array(
142 'exclude' => 1,
143 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fax',
144 'config' => array(
145 'type' => 'input',
146 'size' => '20',
147 'eval' => 'trim',
148 'max' => '20'
149 )
150 ),
151 'email' => array(
152 'exclude' => 1,
153 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
154 'config' => array(
155 'type' => 'input',
156 'size' => '20',
157 'eval' => 'trim',
158 'max' => '80'
159 )
160 ),
161 'title' => array(
162 'exclude' => 1,
163 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title_person',
164 'config' => array(
165 'type' => 'input',
166 'size' => '20',
167 'eval' => 'trim',
168 'max' => '40'
169 )
170 ),
171 'zip' => array(
172 'exclude' => 1,
173 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.zip',
174 'config' => array(
175 'type' => 'input',
176 'eval' => 'trim',
177 'size' => '10',
178 'max' => '10'
179 )
180 ),
181 'city' => array(
182 'exclude' => 1,
183 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.city',
184 'config' => array(
185 'type' => 'input',
186 'size' => '20',
187 'eval' => 'trim',
188 'max' => '50'
189 )
190 ),
191 'country' => array(
192 'exclude' => 1,
193 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.country',
194 'config' => array(
195 'type' => 'input',
196 'size' => '20',
197 'eval' => 'trim',
198 'max' => '40'
199 )
200 ),
201 'www' => array(
202 'exclude' => 1,
203 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.www',
204 'config' => array(
205 'type' => 'input',
206 'eval' => 'trim',
207 'size' => '20',
208 'max' => '80'
209 )
210 ),
211 'company' => array(
212 'exclude' => 1,
213 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.company',
214 'config' => array(
215 'type' => 'input',
216 'eval' => 'trim',
217 'size' => '20',
218 'max' => '80'
219 )
220 ),
221 'image' => array(
222 'exclude' => 1,
223 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.image',
224 'config' => array(
225 'type' => 'group',
226 'internal_type' => 'file',
227 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
228 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
229 'uploadfolder' => 'uploads/pics',
230 'show_thumbs' => '1',
231 'size' => '3',
232 'maxitems' => '6',
233 'minitems' => '0'
234 )
235 ),
236 'disable' => array(
237 'exclude' => 1,
238 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
239 'config' => array(
240 'type' => 'check'
241 )
242 ),
243 'starttime' => array(
244 'exclude' => 1,
245 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
246 'config' => array(
247 'type' => 'input',
248 'size' => '13',
249 'max' => '20',
250 'eval' => 'datetime',
251 'default' => '0',
252 )
253 ),
254 'endtime' => array(
255 'exclude' => 1,
256 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
257 'config' => array(
258 'type' => 'input',
259 'size' => '13',
260 'max' => '20',
261 'eval' => 'datetime',
262 'default' => '0',
263 'range' => array(
264 'upper' => mktime(0, 0, 0, 12, 31, 2020),
265 )
266 )
267 ),
268 'TSconfig' => array(
269 'exclude' => 1,
270 'label' => 'TSconfig:',
271 'config' => array(
272 'type' => 'text',
273 'cols' => '40',
274 'rows' => '10',
275 'wizards' => array(
276 '_PADDING' => 4,
277 '0' => array(
278 'title' => 'TSconfig QuickReference',
279 'script' => 'wizard_tsconfig.php?mode=fe_users',
280 'icon' => 'wizard_tsconfig.gif',
281 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
282 )
283 ),
284 'softref' => 'TSconfig'
285 ),
286 'defaultExtras' => 'fixed-font : enable-tab',
287 ),
288 'lastlogin' => array(
289 'exclude' => 1,
290 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.lastlogin',
291 'config' => array(
292 'type' => 'input',
293 'readOnly' => '1',
294 'size' => '12',
295 'eval' => 'datetime',
296 'default' => 0,
297 )
298 )
299 ),
300 'types' => array(
301 '0' => array('showitem' => '
302 disable,username;;;;1-1-1, password, usergroup, lastlogin;;;;1-1-1,
303 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, company;;1;;1-1-1, name;;2;;2-2-2, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
304 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
305 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
306 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
307
308 ')
309 ),
310 'palettes' => array(
311 '1' => array('showitem' => 'title'),
312 '2' => array('showitem' => 'first_name,--linebreak--,middle_name,--linebreak--,last_name')
313 )
314 );
315
316 // fe_groups
317 // FrontEnd usergroups - Membership of these determines access to elements
318 $TCA['fe_groups'] = array(
319 'ctrl' => $TCA['fe_groups']['ctrl'],
320 'interface' => array(
321 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
322 ),
323 'columns' => array(
324 'hidden' => array(
325 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
326 'exclude' => 1,
327 'config' => array(
328 'type' => 'check',
329 'default' => '0'
330 )
331 ),
332 'title' => array(
333 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups.title',
334 'config' => array(
335 'type' => 'input',
336 'size' => '20',
337 'max' => '50',
338 'eval' => 'trim,required'
339 )
340 ),
341 'subgroup' => array(
342 'exclude' => 1,
343 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups.subgroup',
344 'config' => array(
345 'type' => 'select',
346 'foreign_table' => 'fe_groups',
347 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title',
348 'size' => 6,
349 'autoSizeMax' => 10,
350 'minitems' => 0,
351 'maxitems' => 20
352 )
353 ),
354 'lockToDomain' => array(
355 'exclude' => 1,
356 'label' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups.lockToDomain',
357 'config' => array(
358 'type' => 'input',
359 'size' => '20',
360 'eval' => 'trim',
361 'max' => '50',
362 )
363 ),
364 'description' => array(
365 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
366 'config' => array(
367 'type' => 'text',
368 'rows' => 5,
369 'cols' => 48
370 )
371 ),
372 'TSconfig' => array(
373 'exclude' => 1,
374 'label' => 'TSconfig:',
375 'config' => array(
376 'type' => 'text',
377 'cols' => '40',
378 'rows' => '10',
379 'wizards' => array(
380 '_PADDING' => 4,
381 '0' => array(
382 'title' => 'TSconfig QuickReference',
383 'script' => 'wizard_tsconfig.php?mode=fe_users',
384 'icon' => 'wizard_tsconfig.gif',
385 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
386 )
387 ),
388 'softref' => 'TSconfig'
389 ),
390 'defaultExtras' => 'fixed-font : enable-tab',
391 )
392 ),
393 'types' => array(
394 '0' => array('showitem' => '
395 hidden;;;;1-1-1,title;;;;2-2-2,description,subgroup;;;;3-3-3,
396 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
397 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.extended
398 ')
399 )
400 );
401
402 // sys_domain
403 $TCA['sys_domain'] = array(
404 'ctrl' => $TCA['sys_domain']['ctrl'],
405 'interface' => array(
406 'showRecordFieldList' => 'hidden,domainName,redirectTo'
407 ),
408 'columns' => array(
409 'domainName' => array(
410 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.domainName',
411 'config' => array(
412 'type' => 'input',
413 'size' => '35',
414 'max' => '80',
415 'eval' => 'required,unique,lower,trim,domainname',
416 'softref' => 'substitute'
417 ),
418 ),
419 'redirectTo' => array(
420 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectTo',
421 'config' => array(
422 'type' => 'input',
423 'size' => '35',
424 'max' => '255',
425 'default' => '',
426 'eval' => 'trim',
427 'softref' => 'substitute'
428 ),
429 ),
430 'redirectHttpStatusCode' => array(
431 'exclude' => 1,
432 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode',
433 'config' => array(
434 'type' => 'select',
435 'items' => array(
436 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.301', '301'),
437 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.302', '302'),
438 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.303', '303'),
439 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.307', '307'),
440 ),
441 'size' => 1,
442 'maxitems' => 1,
443 ),
444 ),
445 'hidden' => array(
446 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
447 'exclude' => 1,
448 'config' => array(
449 'type' => 'check',
450 'default' => '0'
451 )
452 ),
453 'prepend_params' => array(
454 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.prepend_params',
455 'exclude' => 1,
456 'config' => array(
457 'type' => 'check',
458 'default' => '0'
459 )
460 ),
461 'forced' => array(
462 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.forced',
463 'exclude' => 1,
464 'config' => array(
465 'type' => 'check',
466 'default' => '1'
467 )
468 )
469 ),
470 'types' => array(
471 '1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params,forced;;;;4-4-4')
472 ),
473 'palettes' => array(
474 '1' => array('showitem' => 'redirectTo, redirectHttpStatusCode')
475 )
476 );
477
478 // pages_language_overlay
479 $TCA['pages_language_overlay'] = array(
480 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
481 'interface' => array(
482 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
483 ),
484 'columns' => array(
485 'doktype' => $TCA['pages']['columns']['doktype'],
486 'hidden' => array(
487 'exclude' => 1,
488 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
489 'config' => array(
490 'type' => 'check',
491 'default' => '0',
492 'items' => array(
493 '1' => array(
494 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden_checkbox_1_formlabel',
495 ),
496 ),
497 )
498 ),
499 'starttime' => array(
500 'exclude' => 1,
501 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
502 'config' => array(
503 'type' => 'input',
504 'size' => '13',
505 'max' => '20',
506 'eval' => 'datetime',
507 'default' => '0'
508 )
509 ),
510 'endtime' => array(
511 'exclude' => 1,
512 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
513 'config' => array(
514 'type' => 'input',
515 'size' => '13',
516 'max' => '20',
517 'eval' => 'datetime',
518 'default' => '0',
519 'range' => array(
520 'upper' => mktime(0, 0, 0, 12, 31, 2020),
521 )
522 )
523 ),
524 'title' => array(
525 'l10n_mode' => 'prefixLangTitle',
526 'label' => $TCA['pages']['columns']['title']['label'],
527 'l10n_cat' => 'text',
528 'config' => array(
529 'type' => 'input',
530 'size' => '50',
531 'max' => '255',
532 'eval' => 'trim,required',
533 )
534 ),
535 'subtitle' => array(
536 'exclude' => 1,
537 'l10n_cat' => 'text',
538 'label' => $TCA['pages']['columns']['subtitle']['label'],
539 'config' => array(
540 'type' => 'input',
541 'size' => '50',
542 'max' => '255',
543 'eval' => 'trim',
544 )
545 ),
546 'nav_title' => array(
547 'exclude' => 1,
548 'l10n_cat' => 'text',
549 'label' => $TCA['pages']['columns']['nav_title']['label'],
550 'config' => array(
551 'type' => 'input',
552 'size' => '50',
553 'max' => '255',
554 'eval' => 'trim',
555 )
556 ),
557 'keywords' => array(
558 'exclude' => 1,
559 'label' => $TCA['pages']['columns']['keywords']['label'],
560 'config' => array(
561 'type' => 'text',
562 'cols' => '40',
563 'rows' => '3'
564 )
565 ),
566 'description' => array(
567 'exclude' => 1,
568 'label' => $TCA['pages']['columns']['description']['label'],
569 'config' => array(
570 'type' => 'text',
571 'cols' => '40',
572 'rows' => '3'
573 )
574 ),
575 'abstract' => array(
576 'exclude' => 1,
577 'label' => $TCA['pages']['columns']['abstract']['label'],
578 'config' => array(
579 'type' => 'text',
580 'cols' => '40',
581 'rows' => '3'
582 )
583 ),
584 'author' => array(
585 'exclude' => 1,
586 'label' => $TCA['pages']['columns']['author']['label'],
587 'config' => array(
588 'type' => 'input',
589 'size' => '23',
590 'eval' => 'trim',
591 'max' => '80',
592 )
593 ),
594 'author_email' => array(
595 'exclude' => 1,
596 'label' => $TCA['pages']['columns']['author_email']['label'],
597 'config' => array(
598 'type' => 'input',
599 'size' => '23',
600 'eval' => 'trim',
601 'max' => '80',
602 'softref' => 'email[subst]',
603 )
604 ),
605 'media' => array(
606 'exclude' => 1,
607 'label' => $TCA['pages']['columns']['media']['label'],
608 'config' => t3lib_extMgm::getFileFieldTCAConfig('media'),
609 ),
610 'url' => array(
611 'exclude' => 1,
612 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url',
613 'config' => array(
614 'type' => 'input',
615 'size' => '23',
616 'max' => '255',
617 'eval' => 'trim',
618 'softref' => 'url',
619 )
620 ),
621 'urltype' => array(
622 'exclude' => 1,
623 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type',
624 'config' => array(
625 'type' => 'select',
626 'items' => $TCA['pages']['columns']['urltype']['config']['items'],
627 'default' => '1'
628 )
629 ),
630 'shortcut' => array (
631 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
632 'config' => array (
633 'type' => 'group',
634 'internal_type' => 'db',
635 'allowed' => 'pages',
636 'size' => '1',
637 'maxitems' => '1',
638 'minitems' => '0',
639 'show_thumbs' => '1',
640 'wizards' => array(
641 'suggest' => array(
642 'type' => 'suggest',
643 ),
644 ),
645 ),
646 ),
647 'shortcut_mode' => array (
648 'exclude' => 1,
649 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
650 'config' => array (
651 'type' => 'select',
652 'items' => $TCA['pages']['columns']['shortcut_mode']['config']['items'],
653 'default' => '0'
654 )
655 ),
656 'sys_language_uid' => array(
657 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
658 'config' => array(
659 'type' => 'select',
660 'foreign_table' => 'sys_language',
661 'foreign_table_where' => 'ORDER BY sys_language.title',
662 'items' => array(
663 array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)
664 )
665 )
666 ),
667 'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
668 'l18n_diffsource' => array('config'=>array('type'=>'passthrough')),
669 't3ver_label' => array(
670 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
671 'config' => array(
672 'type' => 'input',
673 'size' => '30',
674 'max' => '255',
675 )
676 ),
677 ),
678 'types' => array(
679 // normal
680 (string) t3lib_pageSelect::DOKTYPE_DEFAULT => array(
681 'showitem' =>
682 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
683 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
684 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
685 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
686 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
687 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
688 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
689 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.metatags;metatags,
690 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
691 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
692 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
693 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
694 '),
695 // external URL
696 (string) t3lib_pageSelect::DOKTYPE_LINK => array(
697 'showitem' =>
698 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.external;external,
699 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
700 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
701 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
702 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
703 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
704 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
705 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
706 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
707 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
708 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
709 '),
710 // shortcut
711 (string) t3lib_pageSelect::DOKTYPE_SHORTCUT => array(
712 'showitem' =>
713 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcut;shortcut,
714 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcutpage;shortcutpage,
715 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
716 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
717 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
718 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
719 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
720 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
721 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
722 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
723 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
724 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
725 '),
726 // mount page
727 (string) t3lib_pageSelect::DOKTYPE_MOUNTPOINT => array(
728 'showitem' =>
729 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
730 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
731 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
732 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
733 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
734 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
735 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
736 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
737 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
738 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
739 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
740 '),
741 // spacer
742 (string) t3lib_pageSelect::DOKTYPE_SPACER => array(
743 'showitem' =>
744 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
745 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
746 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
747 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
748 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
749 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
750 '),
751 // sysfolder
752 (string) t3lib_pageSelect::DOKTYPE_SYSFOLDER => array(
753 'showitem' =>
754 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
755 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
756 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
757 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
758 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
759 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
760 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
761 '),
762 // trash
763 (string) t3lib_pageSelect::DOKTYPE_RECYCLER => array(
764 'showitem' =>
765 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
766 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
767 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
768 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
769 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
770 '),
771 ),
772 'palettes' => array(
773 '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => TRUE),
774 'standard' => array(
775 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid',
776 'canNotCollapse' => 1,
777 ),
778 'shortcut' => array(
779 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid, shortcut_mode;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode_formlabel',
780 'canNotCollapse' => 1,
781 ),
782 'shortcutpage' => array(
783 'showitem' => 'shortcut;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_formlabel',
784 'canNotCollapse' => 1,
785 ),
786 'external' => array(
787 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid, urltype;LLL:EXT:cms/locallang_tca.xml:pages.urltype_formlabel, url;LLL:EXT:cms/locallang_tca.xml:pages.url_formlabel',
788 'canNotCollapse' => 1,
789 ),
790 'title' => array(
791 'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel, --linebreak--, nav_title;LLL:EXT:cms/locallang_tca.xml:pages.nav_title_formlabel, --linebreak--, subtitle;LLL:EXT:cms/locallang_tca.xml:pages.subtitle_formlabel',
792 'canNotCollapse' => 1,
793 ),
794 'titleonly' => array(
795 'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel',
796 'canNotCollapse' => 1,
797 ),
798 'hiddenonly' => array(
799 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel',
800 'canNotCollapse' => 1,
801 ),
802 'access' => array(
803 'showitem' => 'starttime;LLL:EXT:cms/locallang_tca.xml:pages.starttime_formlabel, endtime;LLL:EXT:cms/locallang_tca.xml:pages.endtime_formlabel',
804 'canNotCollapse' => 1,
805 ),
806 'abstract' => array(
807 'showitem' => 'abstract;LLL:EXT:cms/locallang_tca.xml:pages.abstract_formlabel',
808 'canNotCollapse' => 1,
809 ),
810 'metatags' => array(
811 'showitem' => 'keywords;LLL:EXT:cms/locallang_tca.xml:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:cms/locallang_tca.xml:pages.description_formlabel',
812 'canNotCollapse' => 1,
813 ),
814 'editorial' => array(
815 'showitem' => 'author;LLL:EXT:cms/locallang_tca.xml:pages.author_formlabel, author_email;LLL:EXT:cms/locallang_tca.xml:pages.author_email_formlabel',
816 'canNotCollapse' => 1,
817 ),
818 'language' => array(
819 'showitem' => 'l18n_cfg;LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg_formlabel',
820 'canNotCollapse' => 1,
821 ),
822 'media' => array(
823 'showitem' => 'media;LLL:EXT:cms/locallang_tca.xml:pages.media_formlabel',
824 'canNotCollapse' => 1,
825 )
826 )
827 );
828
829 // Keep old code (pre-FAL) for installations that haven't upgraded yet.
830 // @deprecated since TYPO3 6.0, please remove in TYPO3 7.0
831 // existing installation - and files are merged, nothing to do
832 if ((!isset($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['Tx_Install_Updates_File_TceformsUpdateWizard']) || !t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['Tx_Install_Updates_File_TceformsUpdateWizard'], 'pages_language_overlay:media')) && !t3lib_div::compat_version('6.0')) {
833 t3lib_div::deprecationLog('This installation hasn\'t been migrated to FAL for the field $TCA[pages_language_overlay][columns][media] yet. Please do so before TYPO3 v7.');
834 // Existing installation and no upgrade wizard was executed - and files haven't been merged: use the old code
835 $TCA['pages_language_overlay']['columns']['media']['config'] = array(
836 'type' => 'group',
837 'internal_type' => 'file',
838 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
839 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
840 'uploadfolder' => 'uploads/media',
841 'show_thumbs' => '1',
842 'size' => '3',
843 'maxitems' => '100',
844 'minitems' => '0'
845 );
846 }
847
848 // sys_template
849 $TCA['sys_template'] = array(
850 'ctrl' => $TCA['sys_template']['ctrl'],
851 'interface' => array(
852 'showRecordFieldList' => 'title,clear,root,basedOn,nextLevel,sitetitle,description,hidden,starttime,endtime'
853 ),
854 'columns' => array(
855 'title' => array(
856 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
857 'config' => array(
858 'type' => 'input',
859 'size' => '25',
860 'max' => '256',
861 'eval' => 'required'
862 )
863 ),
864 'hidden' => array(
865 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
866 'exclude' => 1,
867 'config' => array(
868 'type' => 'check',
869 'default' => '0'
870 )
871 ),
872 'starttime' => array(
873 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
874 'exclude' => 1,
875 'config' => array(
876 'type' => 'input',
877 'size' => '13',
878 'max' => '20',
879 'eval' => 'datetime',
880 'default' => '0'
881 )
882 ),
883 'endtime' => array(
884 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
885 'exclude' => 1,
886 'config' => array(
887 'type' => 'input',
888 'size' => '13',
889 'max' => '20',
890 'eval' => 'datetime',
891 'default' => '0',
892 'range' => array(
893 'upper' => mktime(0, 0, 0, 12, 31, 2020),
894 )
895 )
896 ),
897 'root' => array(
898 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
899 'config' => array(
900 'type' => 'check'
901 )
902 ),
903 'clear' => array(
904 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
905 'config' => array(
906 'type' => 'check',
907 'items' => array(
908 array('Constants', ''),
909 array('Setup', '')
910 ),
911 'cols' => 2
912 )
913 ),
914 'sitetitle' => array(
915 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
916 'config' => array(
917 'type' => 'input',
918 'size' => '25',
919 'max' => '256'
920 )
921 ),
922 'constants' => array(
923 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
924 'config' => array(
925 'type' => 'text',
926 'cols' => '48',
927 'rows' => '10',
928 'wrap' => 'OFF',
929 'softref' => 'TStemplate,email[subst],url[subst]'
930 ),
931 'defaultExtras' => 'fixed-font : enable-tab',
932 ),
933 'nextLevel' => array(
934 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
935 'config' => array(
936 'type' => 'group',
937 'internal_type' => 'db',
938 'allowed' => 'sys_template',
939 'show_thumbs' => '1',
940 'size' => '1',
941 'maxitems' => '1',
942 'minitems' => '0',
943 'default' => '',
944 'wizards' => array(
945 'suggest' => array(
946 'type' => 'suggest',
947 ),
948 ),
949 )
950 ),
951 'include_static_file' => array(
952 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
953 'config' => array(
954 'type' => 'select',
955 'size' => 10,
956 'maxitems' => 100,
957 'items' => array(
958 ),
959 'softref' => 'ext_fileref'
960 )
961 ),
962 'basedOn' => array(
963 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
964 'config' => array(
965 'type' => 'group',
966 'internal_type' => 'db',
967 'allowed' => 'sys_template',
968 'show_thumbs' => '1',
969 'size' => '3',
970 'maxitems' => '50',
971 'autoSizeMax' => 10,
972 'minitems' => '0',
973 'default' => '',
974 'wizards' => array(
975 '_PADDING' => 4,
976 '_VERTICAL' => 1,
977 'suggest' => array(
978 'type' => 'suggest',
979 ),
980 'edit' => array(
981 'type' => 'popup',
982 'title' => 'Edit template',
983 'script' => 'wizard_edit.php',
984 'popup_onlyOpenIfSelected' => 1,
985 'icon' => 'edit2.gif',
986 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
987 ),
988 'add' => array(
989 'type' => 'script',
990 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
991 'icon' => 'add.gif',
992 'params' => array(
993 'table'=>'sys_template',
994 'pid' => '###CURRENT_PID###',
995 'setValue' => 'prepend'
996 ),
997 'script' => 'wizard_add.php',
998 )
999 )
1000 )
1001 ),
1002 'includeStaticAfterBasedOn' => array(
1003 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
1004 'exclude' => 1,
1005 'config' => array(
1006 'type' => 'check',
1007 'default' => '0'
1008 )
1009 ),
1010 'config' => array(
1011 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
1012 'config' => array(
1013 'type' => 'text',
1014 'rows' => 10,
1015 'cols' => 48,
1016 'wizards' => array(
1017 '_PADDING' => 4,
1018 '0' => array(
1019 'title' => 'TSref online',
1020 'script' => 'wizard_tsconfig.php?mode=tsref',
1021 'icon' => 'wizard_tsconfig.gif',
1022 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
1023 )
1024 ),
1025 'wrap' => 'OFF',
1026 'softref' => 'TStemplate,email[subst],url[subst]'
1027 ),
1028 'defaultExtras' => 'fixed-font : enable-tab',
1029 ),
1030 'description' => array(
1031 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
1032 'config' => array(
1033 'type' => 'text',
1034 'rows' => 5,
1035 'cols' => 48
1036 )
1037 ),
1038 'static_file_mode' => array(
1039 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
1040 'config' => array(
1041 'type' => 'select',
1042 'items' => array(
1043 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.0', '0'),
1044 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.1', '1'),
1045 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.2', '2'),
1046 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.3', '3'),
1047 ),
1048 'default' => '0'
1049 )
1050 ),
1051 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
1052 't3ver_label' => array(
1053 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
1054 'config' => array(
1055 'type' => 'input',
1056 'size' => '30',
1057 'max' => '255',
1058 )
1059 ),
1060 ),
1061 'types' => array(
1062 '1' => array('showitem' => '
1063 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
1064 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel,
1065 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
1066 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
1067 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
1068 )
1069 )
1070 );
1071
1072 // backend_layout
1073 $TCA['backend_layout'] = array(
1074 'ctrl' => $TCA['backend_layout']['ctrl'],
1075 'interface' => array(
1076 'showRecordFieldList' => 'title,config,description,hidden,icon'
1077 ),
1078 'columns' => array(
1079 'title' => array(
1080 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.title',
1081 'config' => array(
1082 'type' => 'input',
1083 'size' => '25',
1084 'max' => '256',
1085 'eval' => 'required'
1086 )
1087 ),
1088 'description' => array(
1089 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.description',
1090 'config' => array(
1091 'type' => 'text',
1092 'rows' => '5',
1093 'cols' => '25',
1094 )
1095 ),
1096 'config' => array(
1097 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.config',
1098 'config' => array(
1099 'type' => 'text',
1100 'rows' => '5',
1101 'cols' => '25',
1102 'wizards' => Array(
1103 '_PADDING' => 4,
1104 0 => Array(
1105 'title' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.wizard',
1106 'type' => 'popup',
1107 'icon' => t3lib_extMgm::extRelPath('cms').'layout/wizard_backend_layout.png',
1108 'script' => t3lib_extMgm::extRelPath('cms').'layout/wizard_backend_layout.php',
1109 'JSopenParams' => 'height=800,width=800,status=0,menubar=0,scrollbars=0',
1110 ),
1111 ),
1112 )
1113 ),
1114 'hidden' => array(
1115 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
1116 'exclude' => 1,
1117 'config' => array(
1118 'type' => 'check',
1119 'default' => '0'
1120 )
1121 ),
1122 'icon' => array(
1123 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.icon',
1124 'exclude' => 1,
1125 'config' => array(
1126 'type' => 'group',
1127 'internal_type' => 'file',
1128 'allowed' => 'jpg,gif,png',
1129 'uploadfolder' => 'uploads/media',
1130 'show_thumbs' => 1,
1131 'size' => 1,
1132 'maxitems' => 1
1133 )
1134 ),
1135 ),
1136 'types' => array(
1137 '1' => array('showitem' => 'hidden,title;;1;;2-2-2, icon, description, config')
1138 )
1139 );
1140
1141
1142 ?>