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