cdc8539bb8051df6ab8b1f07bd7e52f92739f2e7
[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' => '8',
278 'eval' => 'date'
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 )
641 ),
642 'shortcut_mode' => array (
643 'exclude' => 1,
644 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
645 'config' => array (
646 'type' => 'select',
647 'items' => $TCA['pages']['columns']['shortcut_mode']['config']['items'],
648 'default' => '0'
649 )
650 ),
651 'sys_language_uid' => array(
652 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
653 'config' => array(
654 'type' => 'select',
655 'foreign_table' => 'sys_language',
656 'foreign_table_where' => 'ORDER BY sys_language.title',
657 'items' => array(
658 array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
659 )
660 )
661 ),
662 'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
663 'l18n_diffsource' => array('config'=>array('type'=>'passthrough')),
664 't3ver_label' => array(
665 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
666 'config' => array(
667 'type' => 'input',
668 'size' => '30',
669 'max' => '255',
670 )
671 ),
672 ),
673 'types' => array(
674 // Standard
675 '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'),
676
677 // External URL - URL and URL type can be different for the translated page
678 '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'),
679
680 // Shortcut - shortcut and shortcut mode can be different for the translated page
681 '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'),
682
683 // Mount Point - mount point options can _NOT_ be different for the translated page
684 '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'),
685
686 // Separator
687 '199' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2'),
688
689 // Sysfolder
690 '254' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;LLL:EXT:lang/locallang_general.xml:LGL.title;;;2-2-2'),
691
692 // Recycler
693 '255' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2')
694 ),
695 'palettes' => array(
696 '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true)
697 )
698 );
699
700
701
702 // ******************************************************************
703 // sys_template
704 // ******************************************************************
705 $TCA['sys_template'] = array(
706 'ctrl' => $TCA['sys_template']['ctrl'],
707 'interface' => array(
708 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
709 ),
710 'columns' => array(
711 'title' => array(
712 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
713 'config' => array(
714 'type' => 'input',
715 'size' => '25',
716 'max' => '256',
717 'eval' => 'required'
718 )
719 ),
720 'hidden' => array(
721 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
722 'exclude' => 1,
723 'config' => array(
724 'type' => 'check',
725 'default' => '0'
726 )
727 ),
728 'starttime' => array(
729 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
730 'exclude' => 1,
731 'config' => array(
732 'type' => 'input',
733 'size' => '8',
734 'max' => '20',
735 'eval' => 'date',
736 'checkbox' => '0',
737 'default' => '0'
738 )
739 ),
740 'endtime' => array(
741 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
742 'exclude' => 1,
743 'config' => array(
744 'type' => 'input',
745 'size' => '8',
746 'max' => '20',
747 'eval' => 'date',
748 'checkbox' => '0',
749 'default' => '0',
750 'range' => array(
751 'upper' => mktime(0,0,0,12,31,2020),
752 )
753 )
754 ),
755 'root' => array(
756 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
757 'config' => array(
758 'type' => 'check'
759 )
760 ),
761 'clear' => array(
762 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
763 'config' => array(
764 'type' => 'check',
765 'items' => array(
766 array('Constants', ''),
767 array('Setup', '')
768 ),
769 'cols' => 2
770 )
771 ),
772 'sitetitle' => array(
773 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
774 'config' => array(
775 'type' => 'input',
776 'size' => '25',
777 'max' => '256'
778 )
779 ),
780 'constants' => array(
781 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
782 'config' => array(
783 'type' => 'text',
784 'cols' => '48',
785 'rows' => '10',
786 'wrap' => 'OFF',
787 'softref' => 'TStemplate,email[subst],url[subst]'
788 ),
789 'defaultExtras' => 'fixed-font : enable-tab',
790 ),
791 'resources' => array(
792 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.resources',
793 'config' => array(
794 'type' => 'group',
795 'internal_type' => 'file',
796 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js,xml',
797 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
798 'uploadfolder' => 'uploads/tf',
799 'show_thumbs' => '1',
800 'size' => '7',
801 'maxitems' => '100',
802 'minitems' => '0'
803 )
804 ),
805 'nextLevel' => array(
806 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
807 'config' => array(
808 'type' => 'group',
809 'internal_type' => 'db',
810 'allowed' => 'sys_template',
811 'show_thumbs' => '1',
812 'size' => '1',
813 'maxitems' => '1',
814 'minitems' => '0',
815 'default' => ''
816 )
817 ),
818 'include_static' => array(
819 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static',
820 'config' => array(
821 'type' => 'select',
822 'foreign_table' => 'static_template',
823 'foreign_table_where' => 'ORDER BY static_template.title DESC',
824 'size' => 10,
825 'maxitems' => 20,
826 'default' => '',
827 ),
828 ),
829 'include_static_file' => array(
830 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
831 'config' => array(
832 'type' => 'select',
833 'size' => 10,
834 'maxitems' => 100,
835 'items' => array(
836 ),
837 'softref' => 'ext_fileref'
838 )
839 ),
840 'basedOn' => array(
841 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
842 'config' => array(
843 'type' => 'group',
844 'internal_type' => 'db',
845 'allowed' => 'sys_template',
846 'show_thumbs' => '1',
847 'size' => '3',
848 'maxitems' => '50',
849 'autoSizeMax' => 10,
850 'minitems' => '0',
851 'default' => '',
852 'wizards' => array(
853 '_PADDING' => 4,
854 '_VERTICAL' => 1,
855 'edit' => array(
856 'type' => 'popup',
857 'title' => 'Edit template',
858 'script' => 'wizard_edit.php',
859 'popup_onlyOpenIfSelected' => 1,
860 'icon' => 'edit2.gif',
861 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
862 ),
863 'add' => array(
864 'type' => 'script',
865 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
866 'icon' => 'add.gif',
867 'params' => array(
868 'table'=>'sys_template',
869 'pid' => '###CURRENT_PID###',
870 'setValue' => 'prepend'
871 ),
872 'script' => 'wizard_add.php',
873 )
874 )
875 )
876 ),
877 'includeStaticAfterBasedOn' => array(
878 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
879 'exclude' => 1,
880 'config' => array(
881 'type' => 'check',
882 'default' => '0'
883 )
884 ),
885 'config' => array(
886 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
887 'config' => array(
888 'type' => 'text',
889 'rows' => 10,
890 'cols' => 48,
891 'wizards' => array(
892 '_PADDING' => 4,
893 '0' => array(
894 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
895 'title' => 'TSref online',
896 'script' => 'wizard_tsconfig.php?mode=tsref',
897 'icon' => 'wizard_tsconfig.gif',
898 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
899 )
900 ),
901 'wrap' => 'OFF',
902 'softref' => 'TStemplate,email[subst],url[subst]'
903 ),
904 'defaultExtras' => 'fixed-font : enable-tab',
905 ),
906 'editorcfg' => array(
907 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.editorcfg',
908 'config' => array(
909 'type' => 'text',
910 'rows' => 8,
911 'cols' => 48,
912 'wrap' => 'OFF'
913 ),
914 'defaultExtras' => 'fixed-font : enable-tab',
915 ),
916 'description' => array(
917 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
918 'config' => array(
919 'type' => 'text',
920 'rows' => 5,
921 'cols' => 48
922 )
923 ),
924 'static_file_mode' => array(
925 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
926 'config' => array(
927 'type' => 'select',
928 'items' => array(
929 array('Default (Include before if Root-flag is set)', '0'),
930 array('Always include before this template record', '1'),
931 array('Never include before this template record', '2'),
932 ),
933 'default' => '0'
934 )
935 ),
936 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
937 't3ver_label' => array(
938 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
939 'config' => array(
940 'type' => 'input',
941 'size' => '30',
942 'max' => '255',
943 )
944 ),
945 ),
946 'types' => array(
947 '1' => array('showitem' => '
948 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
949 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel, editorcfg;;;;5-5-5,
950 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, include_static,includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
951 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
952 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
953 )
954 )
955 );
956
957
958
959
960
961 // ******************************************************************
962 // static_template
963 // ******************************************************************
964 $TCA['static_template'] = array(
965 'ctrl' => $TCA['static_template']['ctrl'],
966 'interface' => array(
967 'showRecordFieldList' => 'title,include_static,description'
968 ),
969 'columns' => array(
970 'title' => array(
971 'label' => 'Template title:',
972 'config' => array(
973 'type' => 'input',
974 'size' => '25',
975 'max' => '256',
976 'eval' => 'required'
977 )
978 ),
979 'constants' => array(
980 'label' => 'Constants:',
981 'config' => array(
982 'type' => 'text',
983 'cols' => '48',
984 'rows' => '10',
985 'wrap' => 'OFF'
986 ),
987 'defaultExtras' => 'fixed-font : enable-tab',
988 ),
989 'include_static' => array(
990 'label' => 'Include static:',
991 'config' => array(
992 'type' => 'select',
993 'foreign_table' => 'static_template',
994 'foreign_table_where' => 'ORDER BY static_template.title',
995 'size' => 10,
996 'maxitems' => 20,
997 'default' => ''
998 )
999 ),
1000 'config' => array(
1001 'label' => 'Setup:',
1002 'config' => array(
1003 'type' => 'text',
1004 'rows' => 10,
1005 'cols' => 48,
1006 'wrap' => 'OFF'
1007 ),
1008 'defaultExtras' => 'fixed-font : enable-tab',
1009 ),
1010 'editorcfg' => array(
1011 'label' => 'Backend Editor Configuration:',
1012 'config' => array(
1013 'type' => 'text',
1014 'rows' => 4,
1015 'cols' => 48,
1016 'wrap' => 'OFF'
1017 ),
1018 'defaultExtras' => 'fixed-font : enable-tab',
1019 ),
1020 'description' => array(
1021 'label' => 'Description:',
1022 'config' => array(
1023 'type' => 'text',
1024 'rows' => 10,
1025 'cols' => 48
1026 )
1027 )
1028 ),
1029 'types' => array(
1030 '1' => array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
1031 )
1032 );
1033
1034
1035
1036 ?>