More work on import/export + removal of "lower" range limit for endtimes on core...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2004 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,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime'
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,lower,required'
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' => '3',
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' => '40',
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' => '1000',
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' => '5',
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 )
269 ),
270 'types' => Array (
271 '0' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, lockToDomain, --div--, name;;2;;3-3-3, address, zip, city, country, telephone, fax, email, www, image;;;;4-4-4, --div--, TSconfig;;;;5-5-5')
272 ),
273 'palettes' => Array (
274 '1' => Array('showitem' => 'disable, starttime, endtime'),
275 '2' => Array('showitem' => 'title,company')
276 )
277 );
278
279
280
281
282
283 // ******************************************************************
284 // fe_groups
285 //
286 // FrontEnd usergroups - Membership of these determines access to elements
287 // ******************************************************************
288 $TCA['fe_groups'] = Array (
289 'ctrl' => $TCA['fe_groups']['ctrl'],
290 'interface' => Array (
291 'showRecordFieldList' => 'title,hidden,lockToDomain,description'
292 ),
293 'columns' => Array (
294 'hidden' => Array (
295 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
296 'exclude' => 1,
297 'config' => Array (
298 'type' => 'check',
299 'default' => '0'
300 )
301 ),
302 'title' => Array (
303 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
304 'config' => Array (
305 'type' => 'input',
306 'size' => '20',
307 'max' => '20',
308 'eval' => 'trim,required'
309 )
310 ),
311 'lockToDomain' => Array (
312 'exclude' => 1,
313 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
314 'config' => Array (
315 'type' => 'input',
316 'size' => '20',
317 'eval' => 'trim',
318 'max' => '50',
319 'checkbox' => ''
320 )
321 ),
322 'description' => Array (
323 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
324 'config' => Array (
325 'type' => 'text',
326 'rows' => 5,
327 'cols' => 48
328 )
329 ),
330 'TSconfig' => Array (
331 'exclude' => 1,
332 'label' => 'TSconfig:',
333 'config' => Array (
334 'type' => 'text',
335 'cols' => '40',
336 'rows' => '5',
337 'wizards' => Array(
338 '_PADDING' => 4,
339 '0' => Array(
340 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
341 'title' => 'TSconfig QuickReference',
342 'script' => 'wizard_tsconfig.php?mode=fe_users',
343 'icon' => 'wizard_tsconfig.gif',
344 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
345 )
346 ),
347 'softref' => 'TSconfig'
348 )
349 )
350 ),
351 'types' => Array (
352 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,lockToDomain,description;;;;3-3-3, --div--, TSconfig;;;;5-5-5')
353 )
354 );
355
356
357
358
359 // ******************************************************************
360 // sys_domain
361 // ******************************************************************
362 $TCA['sys_domain'] = Array (
363 'ctrl' => $TCA['sys_domain']['ctrl'],
364 'interface' => Array (
365 'showRecordFieldList' => 'hidden,domainName,redirectTo'
366 ),
367 'columns' => Array (
368 'domainName' => Array (
369 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
370 'config' => Array (
371 'type' => 'input',
372 'size' => '35',
373 'max' => '80',
374 'eval' => 'required,unique,lower,trim',
375 'softref' => 'substitute'
376 ),
377 ),
378 'redirectTo' => Array (
379 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
380 'config' => Array (
381 'type' => 'input',
382 'size' => '35',
383 'max' => '120',
384 'checkbox' => '',
385 'default' => '',
386 'eval' => 'trim',
387 'softref' => 'substitute'
388 ),
389 ),
390 'hidden' => Array (
391 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
392 'exclude' => 1,
393 'config' => Array (
394 'type' => 'check',
395 'default' => '0'
396 )
397 ),
398 'prepend_params' => Array (
399 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
400 'exclude' => 1,
401 'config' => Array (
402 'type' => 'check',
403 'default' => '0'
404 )
405 )
406 ),
407 'types' => Array (
408 '1' => Array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
409 ),
410 'palettes' => Array (
411 '1' => Array('showitem' => 'redirectTo')
412 )
413 );
414
415
416
417
418
419 // ******************************************************************
420 // pages_language_overlay
421 // ******************************************************************
422 $TCA['pages_language_overlay'] = Array (
423 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
424 'interface' => Array (
425 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
426 ),
427 'columns' => Array (
428 'hidden' => Array (
429 'exclude' => 1,
430 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
431 'config' => Array (
432 'type' => 'check',
433 'default' => '1'
434 )
435 ),
436 'starttime' => Array (
437 'exclude' => 1,
438 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
439 'config' => Array (
440 'type' => 'input',
441 'size' => '8',
442 'max' => '20',
443 'eval' => 'date',
444 'checkbox' => '0',
445 'default' => '0'
446 )
447 ),
448 'endtime' => Array (
449 'exclude' => 1,
450 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
451 'config' => Array (
452 'type' => 'input',
453 'size' => '8',
454 'max' => '20',
455 'eval' => 'date',
456 'checkbox' => '0',
457 'default' => '0',
458 'range' => Array (
459 'upper' => mktime(0,0,0,12,31,2020),
460 )
461 )
462 ),
463 'title' => Array (
464 'label' => $TCA['pages']['columns']['title']['label'],
465 'config' => Array (
466 'type' => 'input',
467 'size' => '30',
468 'max' => '256',
469 'eval' => 'required'
470 )
471 ),
472 'subtitle' => Array (
473 'exclude' => 1,
474 'label' => $TCA['pages']['columns']['subtitle']['label'],
475 'config' => Array (
476 'type' => 'input',
477 'size' => '30',
478 'max' => '256',
479 'eval' => ''
480 )
481 ),
482 'nav_title' => Array (
483 'exclude' => 1,
484 'label' => $TCA['pages']['columns']['nav_title']['label'],
485 'config' => Array (
486 'type' => 'input',
487 'size' => '30',
488 'max' => '256',
489 'checkbox' => '',
490 'eval' => 'trim'
491 )
492 ),
493 'keywords' => Array (
494 'exclude' => 1,
495 'label' => $TCA['pages']['columns']['keywords']['label'],
496 'config' => Array (
497 'type' => 'text',
498 'cols' => '40',
499 'rows' => '3'
500 )
501 ),
502 'description' => Array (
503 'exclude' => 1,
504 'label' => $TCA['pages']['columns']['description']['label'],
505 'config' => Array (
506 'type' => 'input',
507 'size' => '40',
508 'eval' => 'trim'
509 )
510 ),
511 'abstract' => Array (
512 'exclude' => 1,
513 'label' => $TCA['pages']['columns']['abstract']['label'],
514 'config' => Array (
515 'type' => 'text',
516 'cols' => '40',
517 'rows' => '3'
518 )
519 ),
520 'author' => Array (
521 'exclude' => 1,
522 'label' => $TCA['pages']['columns']['author']['label'],
523 'config' => Array (
524 'type' => 'input',
525 'size' => '20',
526 'eval' => 'trim',
527 'max' => '80'
528 )
529 ),
530 'author_email' => Array (
531 'exclude' => 1,
532 'label' => $TCA['pages']['columns']['author']['label'],
533 'config' => Array (
534 'type' => 'input',
535 'size' => '20',
536 'eval' => 'trim',
537 'max' => '80'
538 )
539 ),
540 'media' => Array (
541 'exclude' => 1,
542 'label' => $TCA['pages']['columns']['media']['label'],
543 'config' => Array (
544 'type' => 'group',
545 'internal_type' => 'file',
546 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
547 'max_size' => '2000',
548 'uploadfolder' => 'uploads/media',
549 'show_thumbs' => '1',
550 'size' => '3',
551 'maxitems' => '5',
552 'minitems' => '0'
553 )
554 ),
555 'sys_language_uid' => Array (
556 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
557 'config' => Array (
558 'type' => 'select',
559 'foreign_table' => 'sys_language',
560 'foreign_table_where' => 'ORDER BY sys_language.title',
561 'items' => Array(
562 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
563 )
564 )
565 ),
566 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
567 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
568 't3ver_label' => Array (
569 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
570 'config' => Array (
571 'type' => 'input',
572 'size' => '30',
573 'max' => '30',
574 )
575 ),
576 ),
577 'types' => Array (
578 '0' => Array('showitem' => 'hidden;;;;1-1-1, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4')
579 ),
580 'palettes' => Array (
581 '1' => Array('showitem' => 'starttime,endtime'),
582 '5' => Array('showitem' => 'author,author_email')
583 )
584 );
585
586
587
588 // ******************************************************************
589 // sys_template
590 // ******************************************************************
591 $TCA['sys_template'] = Array (
592 'ctrl' => $TCA['sys_template']['ctrl'],
593 'interface' => Array (
594 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
595 ),
596 'columns' => Array (
597 'title' => Array (
598 'label' => 'Template title:',
599 'config' => Array (
600 'type' => 'input',
601 'size' => '25',
602 'max' => '256',
603 'eval' => 'required'
604 )
605 ),
606 'hidden' => Array (
607 'label' => 'Deactivated:',
608 'exclude' => 1,
609 'config' => Array (
610 'type' => 'check',
611 'default' => '0'
612 )
613 ),
614 'starttime' => Array (
615 'label' => 'Start:',
616 'exclude' => 1,
617 'config' => Array (
618 'type' => 'input',
619 'size' => '8',
620 'max' => '20',
621 'eval' => 'date',
622 'checkbox' => '0',
623 'default' => '0'
624 )
625 ),
626 'endtime' => Array (
627 'label' => 'Stop:',
628 'exclude' => 1,
629 'config' => Array (
630 'type' => 'input',
631 'size' => '8',
632 'max' => '20',
633 'eval' => 'date',
634 'checkbox' => '0',
635 'default' => '0',
636 'range' => Array (
637 'upper' => mktime(0,0,0,12,31,2020),
638 )
639 )
640 ),
641 'root' => Array (
642 'label' => 'Rootlevel:',
643 'config' => Array (
644 'type' => 'check'
645 )
646 ),
647 'clear' => Array (
648 'label' => 'Clear:',
649 'config' => Array (
650 'type' => 'check',
651 'items' => Array (
652 Array('Constants', ''),
653 Array('Setup', '')
654 ),
655 'cols' => 2
656 )
657 ),
658 'sitetitle' => Array (
659 'label' => 'Website title:',
660 'config' => Array (
661 'type' => 'input',
662 'size' => '25',
663 'max' => '256'
664 )
665 ),
666 'constants' => Array (
667 'label' => 'Constants:',
668 'config' => Array (
669 'type' => 'text',
670 'cols' => '48',
671 'rows' => '10',
672 'wrap' => 'OFF',
673 'softref' => 'TStemplate,email[subst],url[subst]'
674 ),
675 ),
676 'resources' => Array (
677 'label' => 'Resources:',
678 'config' => Array (
679 'type' => 'group',
680 'internal_type' => 'file',
681 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico',
682 'max_size' => '1000',
683 'uploadfolder' => 'uploads/tf',
684 'show_thumbs' => '1',
685 'size' => '7',
686 'maxitems' => '100',
687 'minitems' => '0'
688 )
689 ),
690 'nextLevel' => Array (
691 'label' => 'Template on next level:',
692 'config' => Array (
693 'type' => 'group',
694 'internal_type' => 'db',
695 'allowed' => 'sys_template',
696 'show_thumbs' => '1',
697 'size' => '3',
698 'maxitems' => '1',
699 'minitems' => '0',
700 'default' => ''
701 )
702 ),
703 'include_static' => Array (
704 'label' => 'Include static:',
705 'config' => Array (
706 'type' => 'select',
707 'foreign_table' => 'static_template',
708 'foreign_table_where' => 'ORDER BY static_template.title DESC',
709 'size' => 10,
710 'maxitems' => 20,
711 'default' => '',
712 ),
713 ),
714 'include_static_file' => Array(
715 'label' => 'Include static (from extensions):',
716 'config' => Array (
717 'type' => 'select',
718 'size' => 10,
719 'maxitems' => 20,
720 'items' => Array (
721 ),
722 'softref' => 'ext_fileref'
723 )
724 ),
725 'basedOn' => Array (
726 'label' => 'Include basis template:',
727 'config' => Array (
728 'type' => 'group',
729 'internal_type' => 'db',
730 'allowed' => 'sys_template',
731 'show_thumbs' => '1',
732 'size' => '3',
733 'maxitems' => '50',
734 'autoSizeMax' => 10,
735 'minitems' => '0',
736 'default' => '',
737 'wizards' => Array(
738 '_PADDING' => 4,
739 '_VERTICAL' => 1,
740 'edit' => Array(
741 'type' => 'popup',
742 'title' => 'Edit filemount',
743 'script' => 'wizard_edit.php',
744 'popup_onlyOpenIfSelected' => 1,
745 'icon' => 'edit2.gif',
746 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
747 ),
748 'add' => Array(
749 'type' => 'script',
750 'title' => 'Add new basis template',
751 'icon' => 'add.gif',
752 'params' => Array(
753 'table'=>'sys_template',
754 'pid' => '###CURRENT_PID###',
755 'setValue' => 'prepend'
756 ),
757 'script' => 'wizard_add.php',
758 )
759 )
760 )
761 ),
762 'includeStaticAfterBasedOn' => Array (
763 'label' => 'Include static AFTER basedOn:',
764 'exclude' => 1,
765 'config' => Array (
766 'type' => 'check',
767 'default' => '0'
768 )
769 ),
770 'config' => Array (
771 'label' => 'Setup:',
772 'config' => Array (
773 'type' => 'text',
774 'rows' => 10,
775 'cols' => 48,
776 'wizards' => Array(
777 '_PADDING' => 4,
778 '0' => Array(
779 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
780 'title' => 'TSref online',
781 'script' => 'wizard_tsconfig.php?mode=tsref',
782 'icon' => 'wizard_tsconfig.gif',
783 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
784 )
785 ),
786 'wrap' => 'OFF',
787 'softref' => 'TStemplate,email[subst],url[subst]'
788 )
789 ),
790 'editorcfg' => Array (
791 'label' => 'Backend Editor Configuration:',
792 'config' => Array (
793 'type' => 'text',
794 'rows' => 4,
795 'cols' => 48,
796 'wrap' => 'OFF'
797 )
798 ),
799 'description' => Array (
800 'label' => 'Description:',
801 'config' => Array (
802 'type' => 'text',
803 'rows' => 10,
804 'cols' => 48
805 )
806 ),
807 'static_file_mode' => Array (
808 'label' => 'Static template files from T3 Extensions:',
809 'config' => Array (
810 'type' => 'select',
811 'items' => Array (
812 Array('Default (Include before if Root-flag is set)', '0'),
813 Array('Always include before this template record', '1'),
814 Array('Never include before this template record', '2'),
815 ),
816 'default' => '0'
817 )
818 ),
819 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
820 't3ver_label' => Array (
821 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
822 'config' => Array (
823 'type' => 'input',
824 'size' => '30',
825 'max' => '30',
826 )
827 ),
828 ),
829 'types' => Array (
830 '1' => Array('showitem' => 'title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, resources, clear, root, --div--, include_static;;2;;5-5-5, include_static_file;;2, basedOn;;2, static_file_mode, nextLevel, --div--, description;;;;5-5-5, editorcfg')
831 ),
832 'palettes' => Array (
833 '1' => Array('showitem' => 'hidden,starttime,endtime'),
834 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
835 )
836 );
837
838
839
840
841
842 // ******************************************************************
843 // static_template
844 // ******************************************************************
845 $TCA['static_template'] = Array (
846 'ctrl' => $TCA['static_template']['ctrl'],
847 'interface' => Array (
848 'showRecordFieldList' => 'title,include_static,description'
849 ),
850 'columns' => Array (
851 'title' => Array (
852 'label' => 'Template title:',
853 'config' => Array (
854 'type' => 'input',
855 'size' => '25',
856 'max' => '256',
857 'eval' => 'required'
858 )
859 ),
860 'constants' => Array (
861 'label' => 'Constants:',
862 'config' => Array (
863 'type' => 'text',
864 'cols' => '48',
865 'rows' => '10',
866 'wrap' => 'OFF'
867 )
868 ),
869 'include_static' => Array (
870 'label' => 'Include static:',
871 'config' => Array (
872 'type' => 'select',
873 'foreign_table' => 'static_template',
874 'foreign_table_where' => 'ORDER BY static_template.title',
875 'size' => 10,
876 'maxitems' => 20,
877 'default' => ''
878 )
879 ),
880 'config' => Array (
881 'label' => 'Setup:',
882 'config' => Array (
883 'type' => 'text',
884 'rows' => 10,
885 'cols' => 48,
886 'wrap' => 'OFF'
887 )
888 ),
889 'editorcfg' => Array (
890 'label' => 'Backend Editor Configuration:',
891 'config' => Array (
892 'type' => 'text',
893 'rows' => 4,
894 'cols' => 48,
895 'wrap' => 'OFF'
896 )
897 ),
898 'description' => Array (
899 'label' => 'Description:',
900 'config' => Array (
901 'type' => 'text',
902 'rows' => 10,
903 'cols' => 48
904 )
905 )
906 ),
907 'types' => Array (
908 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
909 )
910 );
911
912
913
914 ?>