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