Follow-up to #12358: FE-user last-login field uses "date" instead of "datetime" ...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2009 Kasper Skaarhoj (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 Skaarhoj <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,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.php: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.php: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.php: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.php: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.php:LGL.name',
95 'config' => array(
96 'type' => 'input',
97 'size' => '40',
98 'eval' => 'trim',
99 'max' => '80'
100 )
101 ),
102 'address' => array(
103 'exclude' => 1,
104 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
105 'config' => array(
106 'type' => 'text',
107 'cols' => '20',
108 'rows' => '3'
109 )
110 ),
111 'telephone' => array(
112 'exclude' => 1,
113 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
114 'config' => array(
115 'type' => 'input',
116 'eval' => 'trim',
117 'size' => '20',
118 'max' => '20'
119 )
120 ),
121 'fax' => array(
122 'exclude' => 1,
123 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
124 'config' => array(
125 'type' => 'input',
126 'size' => '20',
127 'eval' => 'trim',
128 'max' => '20'
129 )
130 ),
131 'email' => array(
132 'exclude' => 1,
133 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
134 'config' => array(
135 'type' => 'input',
136 'size' => '20',
137 'eval' => 'trim',
138 'max' => '80'
139 )
140 ),
141 'title' => array(
142 'exclude' => 1,
143 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title_person',
144 'config' => array(
145 'type' => 'input',
146 'size' => '20',
147 'eval' => 'trim',
148 'max' => '40'
149 )
150 ),
151 'zip' => array(
152 'exclude' => 1,
153 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
154 'config' => array(
155 'type' => 'input',
156 'eval' => 'trim',
157 'size' => '10',
158 'max' => '10'
159 )
160 ),
161 'city' => array(
162 'exclude' => 1,
163 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
164 'config' => array(
165 'type' => 'input',
166 'size' => '20',
167 'eval' => 'trim',
168 'max' => '50'
169 )
170 ),
171 'country' => array(
172 'exclude' => 1,
173 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
174 'config' => array(
175 'type' => 'input',
176 'size' => '20',
177 'eval' => 'trim',
178 'max' => '40'
179 )
180 ),
181 'www' => array(
182 'exclude' => 1,
183 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
184 'config' => array(
185 'type' => 'input',
186 'eval' => 'trim',
187 'size' => '20',
188 'max' => '80'
189 )
190 ),
191 'company' => array(
192 'exclude' => 1,
193 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
194 'config' => array(
195 'type' => 'input',
196 'eval' => 'trim',
197 'size' => '20',
198 'max' => '80'
199 )
200 ),
201 'image' => array(
202 'exclude' => 1,
203 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
204 'config' => array(
205 'type' => 'group',
206 'internal_type' => 'file',
207 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
208 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
209 'uploadfolder' => 'uploads/pics',
210 'show_thumbs' => '1',
211 'size' => '3',
212 'maxitems' => '6',
213 'minitems' => '0'
214 )
215 ),
216 'disable' => array(
217 'exclude' => 1,
218 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
219 'config' => array(
220 'type' => 'check'
221 )
222 ),
223 'starttime' => array(
224 'exclude' => 1,
225 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
226 'config' => array(
227 'type' => 'input',
228 'size' => '8',
229 'max' => '20',
230 'eval' => 'date',
231 'default' => '0',
232 'checkbox' => '0'
233 )
234 ),
235 'endtime' => array(
236 'exclude' => 1,
237 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
238 'config' => array(
239 'type' => 'input',
240 'size' => '8',
241 'max' => '20',
242 'eval' => 'date',
243 'checkbox' => '0',
244 'default' => '0',
245 'range' => array(
246 'upper' => mktime(0,0,0,12,31,2020),
247 )
248 )
249 ),
250 'TSconfig' => array(
251 'exclude' => 1,
252 'label' => 'TSconfig:',
253 'config' => array(
254 'type' => 'text',
255 'cols' => '40',
256 'rows' => '10',
257 'wizards' => array(
258 '_PADDING' => 4,
259 '0' => array(
260 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
261 'title' => 'TSconfig QuickReference',
262 'script' => 'wizard_tsconfig.php?mode=fe_users',
263 'icon' => 'wizard_tsconfig.gif',
264 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
265 )
266 ),
267 'softref' => 'TSconfig'
268 ),
269 'defaultExtras' => 'fixed-font : enable-tab',
270 ),
271 'lastlogin' => array(
272 'exclude' => 1,
273 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
274 'config' => array(
275 'type' => 'input',
276 'readOnly' => '1',
277 'size' => '12',
278 'eval' => 'datetime',
279 )
280 )
281 ),
282 'types' => array(
283 '0' => array('showitem' => '
284 disable,username;;;;1-1-1, password, usergroup, lastlogin;;;;1-1-1,
285 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.personelData, name;;1;;1-1-1, address, zip, city, country, telephone, fax, email, www, image;;;;2-2-2,
286 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
287 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
288 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
289
290 ')
291 ),
292 'palettes' => array(
293 '1' => array('showitem' => 'title,company')
294 )
295 );
296
297
298
299
300
301 // ******************************************************************
302 // fe_groups
303 //
304 // FrontEnd usergroups - Membership of these determines access to elements
305 // ******************************************************************
306 $TCA['fe_groups'] = array(
307 'ctrl' => $TCA['fe_groups']['ctrl'],
308 'interface' => array(
309 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
310 ),
311 'columns' => array(
312 'hidden' => array(
313 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
314 'exclude' => 1,
315 'config' => array(
316 'type' => 'check',
317 'default' => '0'
318 )
319 ),
320 'title' => array(
321 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
322 'config' => array(
323 'type' => 'input',
324 'size' => '20',
325 'max' => '50',
326 'eval' => 'trim,required'
327 )
328 ),
329 'subgroup' => array(
330 'exclude' => 1,
331 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.subgroup',
332 'config' => array(
333 'type' => 'select',
334 'foreign_table' => 'fe_groups',
335 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title',
336 'size' => 6,
337 'autoSizeMax' => 10,
338 'minitems' => 0,
339 'maxitems' => 20
340 )
341 ),
342 'lockToDomain' => array(
343 'exclude' => 1,
344 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
345 'config' => array(
346 'type' => 'input',
347 'size' => '20',
348 'eval' => 'trim',
349 'max' => '50',
350 'checkbox' => ''
351 )
352 ),
353 'description' => array(
354 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
355 'config' => array(
356 'type' => 'text',
357 'rows' => 5,
358 'cols' => 48
359 )
360 ),
361 'TSconfig' => array(
362 'exclude' => 1,
363 'label' => 'TSconfig:',
364 'config' => array(
365 'type' => 'text',
366 'cols' => '40',
367 'rows' => '10',
368 'wizards' => array(
369 '_PADDING' => 4,
370 '0' => array(
371 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
372 'title' => 'TSconfig QuickReference',
373 'script' => 'wizard_tsconfig.php?mode=fe_users',
374 'icon' => 'wizard_tsconfig.gif',
375 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
376 )
377 ),
378 'softref' => 'TSconfig'
379 ),
380 'defaultExtras' => 'fixed-font : enable-tab',
381 )
382 ),
383 'types' => array(
384 '0' => array('showitem' => '
385 hidden;;;;1-1-1,title;;;;2-2-2,description,subgroup;;;;3-3-3,
386 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
387 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.extended
388 ')
389 )
390 );
391
392
393
394
395 // ******************************************************************
396 // sys_domain
397 // ******************************************************************
398 $TCA['sys_domain'] = array(
399 'ctrl' => $TCA['sys_domain']['ctrl'],
400 'interface' => array(
401 'showRecordFieldList' => 'hidden,domainName,redirectTo'
402 ),
403 'columns' => array(
404 'domainName' => array(
405 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
406 'config' => array(
407 'type' => 'input',
408 'size' => '35',
409 'max' => '80',
410 'eval' => 'required,unique,lower,trim',
411 'softref' => 'substitute'
412 ),
413 ),
414 'redirectTo' => array(
415 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
416 'config' => array(
417 'type' => 'input',
418 'size' => '35',
419 'max' => '120',
420 'checkbox' => '',
421 'default' => '',
422 'eval' => 'trim',
423 'softref' => 'substitute'
424 ),
425 ),
426 'redirectHttpStatusCode' => array(
427 'exclude' => 1,
428 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode',
429 'config' => array(
430 'type' => 'select',
431 'items' => array(
432 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.301', '301'),
433 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.302', '302'),
434 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.303', '303'),
435 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.307', '307'),
436 ),
437 'size' => 1,
438 'maxitems' => 1,
439 ),
440 ),
441 'hidden' => array(
442 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
443 'exclude' => 1,
444 'config' => array(
445 'type' => 'check',
446 'default' => '0'
447 )
448 ),
449 'prepend_params' => array(
450 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
451 'exclude' => 1,
452 'config' => array(
453 'type' => 'check',
454 'default' => '0'
455 )
456 )
457 ),
458 'types' => array(
459 '1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
460 ),
461 'palettes' => array(
462 '1' => array('showitem' => 'redirectTo, redirectHttpStatusCode')
463 )
464 );
465
466
467
468
469
470 // ******************************************************************
471 // pages_language_overlay
472 // ******************************************************************
473 $TCA['pages_language_overlay'] = array(
474 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
475 'interface' => array(
476 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
477 ),
478 'columns' => array(
479 'doktype' => $TCA['pages']['columns']['doktype'],
480 'hidden' => array(
481 'exclude' => 1,
482 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
483 'config' => array(
484 'type' => 'check',
485 'default' => '0'
486 )
487 ),
488 'starttime' => array(
489 'exclude' => 1,
490 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
491 'config' => array(
492 'type' => 'input',
493 'size' => '8',
494 'max' => '20',
495 'eval' => 'date',
496 'checkbox' => '0',
497 'default' => '0'
498 )
499 ),
500 'endtime' => array(
501 'exclude' => 1,
502 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
503 'config' => array(
504 'type' => 'input',
505 'size' => '8',
506 'max' => '20',
507 'eval' => 'date',
508 'checkbox' => '0',
509 'default' => '0',
510 'range' => array(
511 'upper' => mktime(0,0,0,12,31,2020),
512 )
513 )
514 ),
515 'title' => array(
516 'l10n_mode' => 'prefixLangTitle',
517 'label' => $TCA['pages']['columns']['title']['label'],
518 'l10n_cat' => 'text',
519 'config' => array(
520 'type' => 'input',
521 'size' => '30',
522 'max' => '256',
523 'eval' => 'required'
524 )
525 ),
526 'subtitle' => array(
527 'exclude' => 1,
528 'l10n_cat' => 'text',
529 'label' => $TCA['pages']['columns']['subtitle']['label'],
530 'config' => array(
531 'type' => 'input',
532 'size' => '30',
533 'max' => '256',
534 'eval' => ''
535 )
536 ),
537 'nav_title' => array(
538 'exclude' => 1,
539 'l10n_cat' => 'text',
540 'label' => $TCA['pages']['columns']['nav_title']['label'],
541 'config' => array(
542 'type' => 'input',
543 'size' => '30',
544 'max' => '256',
545 'checkbox' => '',
546 'eval' => 'trim'
547 )
548 ),
549 'keywords' => array(
550 'exclude' => 1,
551 'label' => $TCA['pages']['columns']['keywords']['label'],
552 'config' => array(
553 'type' => 'text',
554 'cols' => '40',
555 'rows' => '3'
556 )
557 ),
558 'description' => array(
559 'exclude' => 1,
560 'label' => $TCA['pages']['columns']['description']['label'],
561 'config' => array(
562 'type' => 'text',
563 'cols' => '40',
564 'rows' => '3'
565 )
566 ),
567 'abstract' => array(
568 'exclude' => 1,
569 'label' => $TCA['pages']['columns']['abstract']['label'],
570 'config' => array(
571 'type' => 'text',
572 'cols' => '40',
573 'rows' => '3'
574 )
575 ),
576 'author' => array(
577 'exclude' => 1,
578 'label' => $TCA['pages']['columns']['author']['label'],
579 'config' => array(
580 'type' => 'input',
581 'size' => '20',
582 'eval' => 'trim',
583 'max' => '80'
584 )
585 ),
586 'author_email' => array(
587 'exclude' => 1,
588 'label' => $TCA['pages']['columns']['author_email']['label'],
589 'config' => array(
590 'type' => 'input',
591 'size' => '20',
592 'eval' => 'trim',
593 'max' => '80'
594 )
595 ),
596 'media' => array(
597 'exclude' => 1,
598 'label' => $TCA['pages']['columns']['media']['label'],
599 'config' => array(
600 'type' => 'group',
601 'internal_type' => 'file',
602 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
603 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
604 'uploadfolder' => 'uploads/media',
605 'show_thumbs' => '1',
606 'size' => '3',
607 'maxitems' => '5',
608 'minitems' => '0'
609 )
610 ),
611 'url' => array(
612 'exclude' => 1,
613 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.url',
614 'config' => array(
615 'type' => 'input',
616 'size' => '25',
617 'max' => '255',
618 'eval' => 'trim'
619 )
620 ),
621 'urltype' => array(
622 'exclude' => 1,
623 'label' => 'LLL:EXT:lang/locallang_general.php: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' => '3',
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.php: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.php: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.php:LGL.versionLabel',
671 'config' => array(
672 'type' => 'input',
673 'size' => '30',
674 'max' => '255',
675 )
676 ),
677 ),
678 'types' => array(
679 // Standard
680 '1' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata, --palette--;LLL:EXT:lang/locallang_general.xml:LGL.author;5;;3-3-3, abstract, keywords, description, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
681
682 // External URL - URL and URL type can be different for the translated page
683 '3' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.url, url;;;;3-3-3, urltype, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
684
685 // Shortcut - shortcut and shortcut mode can be different for the translated page
686 '4' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.shortcut, shortcut;;;;3-3-3, shortcut_mode, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
687
688 // Mount Point - mount point options can _NOT_ be different for the translated page
689 '7' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
690
691 // Separator
692 '199' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2'),
693
694 // Sysfolder
695 '254' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;LLL:EXT:lang/locallang_general.xml:LGL.title;;;2-2-2'),
696
697 // Recycler
698 '255' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2')
699 ),
700 'palettes' => array(
701 '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true)
702 )
703 );
704
705
706
707 // ******************************************************************
708 // sys_template
709 // ******************************************************************
710 $TCA['sys_template'] = array(
711 'ctrl' => $TCA['sys_template']['ctrl'],
712 'interface' => array(
713 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
714 ),
715 'columns' => array(
716 'title' => array(
717 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
718 'config' => array(
719 'type' => 'input',
720 'size' => '25',
721 'max' => '256',
722 'eval' => 'required'
723 )
724 ),
725 'hidden' => array(
726 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
727 'exclude' => 1,
728 'config' => array(
729 'type' => 'check',
730 'default' => '0'
731 )
732 ),
733 'starttime' => array(
734 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
735 'exclude' => 1,
736 'config' => array(
737 'type' => 'input',
738 'size' => '8',
739 'max' => '20',
740 'eval' => 'date',
741 'checkbox' => '0',
742 'default' => '0'
743 )
744 ),
745 'endtime' => array(
746 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
747 'exclude' => 1,
748 'config' => array(
749 'type' => 'input',
750 'size' => '8',
751 'max' => '20',
752 'eval' => 'date',
753 'checkbox' => '0',
754 'default' => '0',
755 'range' => array(
756 'upper' => mktime(0,0,0,12,31,2020),
757 )
758 )
759 ),
760 'root' => array(
761 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
762 'config' => array(
763 'type' => 'check'
764 )
765 ),
766 'clear' => array(
767 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
768 'config' => array(
769 'type' => 'check',
770 'items' => array(
771 array('Constants', ''),
772 array('Setup', '')
773 ),
774 'cols' => 2
775 )
776 ),
777 'sitetitle' => array(
778 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
779 'config' => array(
780 'type' => 'input',
781 'size' => '25',
782 'max' => '256'
783 )
784 ),
785 'constants' => array(
786 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
787 'config' => array(
788 'type' => 'text',
789 'cols' => '48',
790 'rows' => '10',
791 'wrap' => 'OFF',
792 'softref' => 'TStemplate,email[subst],url[subst]'
793 ),
794 'defaultExtras' => 'fixed-font : enable-tab',
795 ),
796 'resources' => array(
797 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.resources',
798 'config' => array(
799 'type' => 'group',
800 'internal_type' => 'file',
801 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js,xml',
802 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
803 'uploadfolder' => 'uploads/tf',
804 'show_thumbs' => '1',
805 'size' => '7',
806 'maxitems' => '100',
807 'minitems' => '0'
808 )
809 ),
810 'nextLevel' => array(
811 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
812 'config' => array(
813 'type' => 'group',
814 'internal_type' => 'db',
815 'allowed' => 'sys_template',
816 'show_thumbs' => '1',
817 'size' => '1',
818 'maxitems' => '1',
819 'minitems' => '0',
820 'default' => '',
821 'wizards' => array(
822 'suggest' => array(
823 'type' => 'suggest',
824 ),
825 ),
826 )
827 ),
828 'include_static' => array(
829 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static',
830 'config' => array(
831 'type' => 'select',
832 'foreign_table' => 'static_template',
833 'foreign_table_where' => 'ORDER BY static_template.title DESC',
834 'size' => 10,
835 'maxitems' => 20,
836 'default' => '',
837 ),
838 ),
839 'include_static_file' => array(
840 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
841 'config' => array(
842 'type' => 'select',
843 'size' => 10,
844 'maxitems' => 100,
845 'items' => array(
846 ),
847 'softref' => 'ext_fileref'
848 )
849 ),
850 'basedOn' => array(
851 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
852 'config' => array(
853 'type' => 'group',
854 'internal_type' => 'db',
855 'allowed' => 'sys_template',
856 'show_thumbs' => '1',
857 'size' => '3',
858 'maxitems' => '50',
859 'autoSizeMax' => 10,
860 'minitems' => '0',
861 'default' => '',
862 'wizards' => array(
863 '_PADDING' => 4,
864 '_VERTICAL' => 1,
865 'suggest' => array(
866 'type' => 'suggest',
867 ),
868 'edit' => array(
869 'type' => 'popup',
870 'title' => 'Edit template',
871 'script' => 'wizard_edit.php',
872 'popup_onlyOpenIfSelected' => 1,
873 'icon' => 'edit2.gif',
874 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
875 ),
876 'add' => array(
877 'type' => 'script',
878 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
879 'icon' => 'add.gif',
880 'params' => array(
881 'table'=>'sys_template',
882 'pid' => '###CURRENT_PID###',
883 'setValue' => 'prepend'
884 ),
885 'script' => 'wizard_add.php',
886 )
887 )
888 )
889 ),
890 'includeStaticAfterBasedOn' => array(
891 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
892 'exclude' => 1,
893 'config' => array(
894 'type' => 'check',
895 'default' => '0'
896 )
897 ),
898 'config' => array(
899 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
900 'config' => array(
901 'type' => 'text',
902 'rows' => 10,
903 'cols' => 48,
904 'wizards' => array(
905 '_PADDING' => 4,
906 '0' => array(
907 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
908 'title' => 'TSref online',
909 'script' => 'wizard_tsconfig.php?mode=tsref',
910 'icon' => 'wizard_tsconfig.gif',
911 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
912 )
913 ),
914 'wrap' => 'OFF',
915 'softref' => 'TStemplate,email[subst],url[subst]'
916 ),
917 'defaultExtras' => 'fixed-font : enable-tab',
918 ),
919 'editorcfg' => array(
920 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.editorcfg',
921 'config' => array(
922 'type' => 'text',
923 'rows' => 8,
924 'cols' => 48,
925 'wrap' => 'OFF'
926 ),
927 'defaultExtras' => 'fixed-font : enable-tab',
928 ),
929 'description' => array(
930 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
931 'config' => array(
932 'type' => 'text',
933 'rows' => 5,
934 'cols' => 48
935 )
936 ),
937 'static_file_mode' => array(
938 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
939 'config' => array(
940 'type' => 'select',
941 'items' => array(
942 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.0', '0'),
943 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.1', '1'),
944 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.2', '2'),
945 ),
946 'default' => '0'
947 )
948 ),
949 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
950 't3ver_label' => array(
951 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
952 'config' => array(
953 'type' => 'input',
954 'size' => '30',
955 'max' => '255',
956 )
957 ),
958 ),
959 'types' => array(
960 '1' => array('showitem' => '
961 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
962 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel, editorcfg;;;;5-5-5,
963 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, include_static,includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
964 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
965 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
966 )
967 )
968 );
969
970
971
972
973
974 // ******************************************************************
975 // static_template
976 // ******************************************************************
977 $TCA['static_template'] = array(
978 'ctrl' => $TCA['static_template']['ctrl'],
979 'interface' => array(
980 'showRecordFieldList' => 'title,include_static,description'
981 ),
982 'columns' => array(
983 'title' => array(
984 'label' => 'Template title:',
985 'config' => array(
986 'type' => 'input',
987 'size' => '25',
988 'max' => '256',
989 'eval' => 'required'
990 )
991 ),
992 'constants' => array(
993 'label' => 'Constants:',
994 'config' => array(
995 'type' => 'text',
996 'cols' => '48',
997 'rows' => '10',
998 'wrap' => 'OFF'
999 ),
1000 'defaultExtras' => 'fixed-font : enable-tab',
1001 ),
1002 'include_static' => array(
1003 'label' => 'Include static:',
1004 'config' => array(
1005 'type' => 'select',
1006 'foreign_table' => 'static_template',
1007 'foreign_table_where' => 'ORDER BY static_template.title',
1008 'size' => 10,
1009 'maxitems' => 20,
1010 'default' => ''
1011 )
1012 ),
1013 'config' => array(
1014 'label' => 'Setup:',
1015 'config' => array(
1016 'type' => 'text',
1017 'rows' => 10,
1018 'cols' => 48,
1019 'wrap' => 'OFF'
1020 ),
1021 'defaultExtras' => 'fixed-font : enable-tab',
1022 ),
1023 'editorcfg' => array(
1024 'label' => 'Backend Editor Configuration:',
1025 'config' => array(
1026 'type' => 'text',
1027 'rows' => 4,
1028 'cols' => 48,
1029 'wrap' => 'OFF'
1030 ),
1031 'defaultExtras' => 'fixed-font : enable-tab',
1032 ),
1033 'description' => array(
1034 'label' => 'Description:',
1035 'config' => array(
1036 'type' => 'text',
1037 'rows' => 10,
1038 'cols' => 48
1039 )
1040 )
1041 ),
1042 'types' => array(
1043 '1' => array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
1044 )
1045 );
1046
1047
1048
1049 ?>