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