Various; 3 new access control modes; CSH changes; moving sys_language to core (see...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2004 Kasper Skaarhoj (kasper@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 <kasper@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 )
89 ),
90 'name' => Array (
91 'exclude' => 1,
92 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
93 'config' => Array (
94 'type' => 'input',
95 'size' => '40',
96 'eval' => 'trim',
97 'max' => '80'
98 )
99 ),
100 'address' => Array (
101 'exclude' => 1,
102 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
103 'config' => Array (
104 'type' => 'text',
105 'cols' => '20',
106 'rows' => '3'
107 )
108 ),
109 'telephone' => Array (
110 'exclude' => 1,
111 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
112 'config' => Array (
113 'type' => 'input',
114 'eval' => 'trim',
115 'size' => '20',
116 'max' => '20'
117 )
118 ),
119 'fax' => Array (
120 'exclude' => 1,
121 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
122 'config' => Array (
123 'type' => 'input',
124 'size' => '20',
125 'eval' => 'trim',
126 'max' => '20'
127 )
128 ),
129 'email' => Array (
130 'exclude' => 1,
131 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
132 'config' => Array (
133 'type' => 'input',
134 'size' => '40',
135 'eval' => 'trim',
136 'max' => '80'
137 )
138 ),
139 'title' => Array (
140 'exclude' => 1,
141 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
142 'config' => Array (
143 'type' => 'input',
144 'size' => '20',
145 'eval' => 'trim',
146 'max' => '40'
147 )
148 ),
149 'zip' => Array (
150 'exclude' => 1,
151 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
152 'config' => Array (
153 'type' => 'input',
154 'eval' => 'trim',
155 'size' => '10',
156 'max' => '10'
157 )
158 ),
159 'city' => Array (
160 'exclude' => 1,
161 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
162 'config' => Array (
163 'type' => 'input',
164 'size' => '20',
165 'eval' => 'trim',
166 'max' => '50'
167 )
168 ),
169 'country' => Array (
170 'exclude' => 1,
171 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
172 'config' => Array (
173 'type' => 'input',
174 'size' => '20',
175 'eval' => 'trim',
176 'max' => '40'
177 )
178 ),
179 'www' => Array (
180 'exclude' => 1,
181 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
182 'config' => Array (
183 'type' => 'input',
184 'eval' => 'trim',
185 'size' => '20',
186 'max' => '80'
187 )
188 ),
189 'company' => Array (
190 'exclude' => 1,
191 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
192 'config' => Array (
193 'type' => 'input',
194 'eval' => 'trim',
195 'size' => '20',
196 'max' => '80'
197 )
198 ),
199 'image' => Array (
200 'exclude' => 1,
201 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
202 'config' => Array (
203 'type' => 'group',
204 'internal_type' => 'file',
205 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
206 'max_size' => '1000',
207 'uploadfolder' => 'uploads/pics',
208 'show_thumbs' => '1',
209 'size' => '3',
210 'maxitems' => '6',
211 'minitems' => '0'
212 )
213 ),
214 'disable' => Array (
215 'exclude' => 1,
216 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
217 'config' => Array (
218 'type' => 'check'
219 )
220 ),
221 'starttime' => Array (
222 'exclude' => 1,
223 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
224 'config' => Array (
225 'type' => 'input',
226 'size' => '8',
227 'max' => '20',
228 'eval' => 'date',
229 'default' => '0',
230 'checkbox' => '0'
231 )
232 ),
233 'endtime' => Array (
234 'exclude' => 1,
235 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
236 'config' => Array (
237 'type' => 'input',
238 'size' => '8',
239 'max' => '20',
240 'eval' => 'date',
241 'checkbox' => '0',
242 'default' => '0',
243 'range' => Array (
244 'upper' => mktime(0,0,0,12,31,2020),
245 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
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 )
267 )
268 ),
269 'types' => Array (
270 '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')
271 ),
272 'palettes' => Array (
273 '1' => Array('showitem' => 'disable, starttime, endtime'),
274 '2' => Array('showitem' => 'title,company')
275 )
276 );
277
278
279
280
281
282 // ******************************************************************
283 // fe_groups
284 //
285 // FrontEnd usergroups - Membership of these determines access to elements
286 // ******************************************************************
287 $TCA['fe_groups'] = Array (
288 'ctrl' => $TCA['fe_groups']['ctrl'],
289 'interface' => Array (
290 'showRecordFieldList' => 'title,hidden,lockToDomain,description'
291 ),
292 'columns' => Array (
293 'hidden' => Array (
294 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
295 'exclude' => 1,
296 'config' => Array (
297 'type' => 'check',
298 'default' => '0'
299 )
300 ),
301 'title' => Array (
302 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
303 'config' => Array (
304 'type' => 'input',
305 'size' => '20',
306 'max' => '20',
307 'eval' => 'trim,required'
308 )
309 ),
310 'lockToDomain' => Array (
311 'exclude' => 1,
312 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
313 'config' => Array (
314 'type' => 'input',
315 'size' => '20',
316 'eval' => 'trim',
317 'max' => '50',
318 'checkbox' => ''
319 )
320 ),
321 'description' => Array (
322 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
323 'config' => Array (
324 'type' => 'text',
325 'rows' => 5,
326 'cols' => 48
327 )
328 ),
329 'TSconfig' => Array (
330 'exclude' => 1,
331 'label' => 'TSconfig:',
332 'config' => Array (
333 'type' => 'text',
334 'cols' => '40',
335 'rows' => '5',
336 'wizards' => Array(
337 '_PADDING' => 4,
338 '0' => Array(
339 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
340 'title' => 'TSconfig QuickReference',
341 'script' => 'wizard_tsconfig.php?mode=fe_users',
342 'icon' => 'wizard_tsconfig.gif',
343 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
344 )
345 )
346 )
347 )
348 ),
349 'types' => Array (
350 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,lockToDomain,description;;;;3-3-3, --div--, TSconfig;;;;5-5-5')
351 )
352 );
353
354
355
356
357 // ******************************************************************
358 // sys_domain
359 // ******************************************************************
360 $TCA['sys_domain'] = Array (
361 'ctrl' => $TCA['sys_domain']['ctrl'],
362 'interface' => Array (
363 'showRecordFieldList' => 'hidden,domainName,redirectTo'
364 ),
365 'columns' => Array (
366 'domainName' => Array (
367 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
368 'config' => Array (
369 'type' => 'input',
370 'size' => '35',
371 'max' => '80',
372 'eval' => 'required,unique,lower,trim'
373 )
374 ),
375 'redirectTo' => Array (
376 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
377 'config' => Array (
378 'type' => 'input',
379 'size' => '35',
380 'max' => '120',
381 'checkbox' => '',
382 'default' => '',
383 'eval' => 'trim'
384 )
385 ),
386 'hidden' => Array (
387 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
388 'exclude' => 1,
389 'config' => Array (
390 'type' => 'check',
391 'default' => '0'
392 )
393 ),
394 'prepend_params' => Array (
395 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
396 'exclude' => 1,
397 'config' => Array (
398 'type' => 'check',
399 'default' => '0'
400 )
401 )
402 ),
403 'types' => Array (
404 '1' => Array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
405 ),
406 'palettes' => Array (
407 '1' => Array('showitem' => 'redirectTo')
408 )
409 );
410
411
412
413
414
415 // ******************************************************************
416 // pages_language_overlay
417 // ******************************************************************
418 $TCA['pages_language_overlay'] = Array (
419 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
420 'interface' => Array (
421 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
422 ),
423 'columns' => Array (
424 'hidden' => Array (
425 'exclude' => 1,
426 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
427 'config' => Array (
428 'type' => 'check',
429 'default' => '1'
430 )
431 ),
432 'starttime' => Array (
433 'exclude' => 1,
434 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
435 'config' => Array (
436 'type' => 'input',
437 'size' => '8',
438 'max' => '20',
439 'eval' => 'date',
440 'checkbox' => '0',
441 'default' => '0'
442 )
443 ),
444 'endtime' => Array (
445 'exclude' => 1,
446 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
447 'config' => Array (
448 'type' => 'input',
449 'size' => '8',
450 'max' => '20',
451 'eval' => 'date',
452 'checkbox' => '0',
453 'default' => '0',
454 'range' => Array (
455 'upper' => mktime(0,0,0,12,31,2020),
456 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
457 )
458 )
459 ),
460 'title' => Array (
461 'label' => $TCA['pages']['columns']['title']['label'],
462 'config' => Array (
463 'type' => 'input',
464 'size' => '30',
465 'max' => '256',
466 'eval' => 'required'
467 )
468 ),
469 'subtitle' => Array (
470 'exclude' => 1,
471 'label' => $TCA['pages']['columns']['subtitle']['label'],
472 'config' => Array (
473 'type' => 'input',
474 'size' => '30',
475 'max' => '256',
476 'eval' => ''
477 )
478 ),
479 'nav_title' => Array (
480 'exclude' => 1,
481 'label' => $TCA['pages']['columns']['nav_title']['label'],
482 'config' => Array (
483 'type' => 'input',
484 'size' => '30',
485 'max' => '256',
486 'checkbox' => '',
487 'eval' => 'trim'
488 )
489 ),
490 'keywords' => Array (
491 'exclude' => 1,
492 'label' => $TCA['pages']['columns']['keywords']['label'],
493 'config' => Array (
494 'type' => 'text',
495 'cols' => '40',
496 'rows' => '3'
497 )
498 ),
499 'description' => Array (
500 'exclude' => 1,
501 'label' => $TCA['pages']['columns']['description']['label'],
502 'config' => Array (
503 'type' => 'input',
504 'size' => '40',
505 'eval' => 'trim'
506 )
507 ),
508 'abstract' => Array (
509 'exclude' => 1,
510 'label' => $TCA['pages']['columns']['abstract']['label'],
511 'config' => Array (
512 'type' => 'text',
513 'cols' => '40',
514 'rows' => '3'
515 )
516 ),
517 'author' => Array (
518 'exclude' => 1,
519 'label' => $TCA['pages']['columns']['author']['label'],
520 'config' => Array (
521 'type' => 'input',
522 'size' => '20',
523 'eval' => 'trim',
524 'max' => '80'
525 )
526 ),
527 'author_email' => Array (
528 'exclude' => 1,
529 'label' => $TCA['pages']['columns']['author']['label'],
530 'config' => Array (
531 'type' => 'input',
532 'size' => '20',
533 'eval' => 'trim',
534 'max' => '80'
535 )
536 ),
537 'media' => Array (
538 'exclude' => 1,
539 'label' => $TCA['pages']['columns']['media']['label'],
540 'config' => Array (
541 'type' => 'group',
542 'internal_type' => 'file',
543 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
544 'max_size' => '2000',
545 'uploadfolder' => 'uploads/media',
546 'show_thumbs' => '1',
547 'size' => '3',
548 'maxitems' => '5',
549 'minitems' => '0'
550 )
551 ),
552 'sys_language_uid' => Array (
553 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
554 'config' => Array (
555 'type' => 'select',
556 'foreign_table' => 'sys_language',
557 'foreign_table_where' => 'ORDER BY sys_language.title',
558 'items' => Array(
559 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
560 )
561 )
562 ),
563 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
564 ),
565 'types' => Array (
566 '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')
567 ),
568 'palettes' => Array (
569 '1' => Array('showitem' => 'starttime,endtime'),
570 '5' => Array('showitem' => 'author,author_email')
571 )
572 );
573
574
575
576 // ******************************************************************
577 // sys_template
578 // ******************************************************************
579 $TCA['sys_template'] = Array (
580 'ctrl' => $TCA['sys_template']['ctrl'],
581 'interface' => Array (
582 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
583 ),
584 'columns' => Array (
585 'title' => Array (
586 'label' => 'Template title:',
587 'config' => Array (
588 'type' => 'input',
589 'size' => '25',
590 'max' => '256',
591 'eval' => 'required'
592 )
593 ),
594 'hidden' => Array (
595 'label' => 'Deactivated:',
596 'exclude' => 1,
597 'config' => Array (
598 'type' => 'check',
599 'default' => '0'
600 )
601 ),
602 'starttime' => Array (
603 'label' => 'Start:',
604 'exclude' => 1,
605 'config' => Array (
606 'type' => 'input',
607 'size' => '8',
608 'max' => '20',
609 'eval' => 'date',
610 'checkbox' => '0',
611 'default' => '0'
612 )
613 ),
614 'endtime' => Array (
615 'label' => 'Stop:',
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 'range' => Array (
625 'upper' => mktime(0,0,0,12,31,2020),
626 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
627 )
628 )
629 ),
630 'root' => Array (
631 'label' => 'Rootlevel:',
632 'config' => Array (
633 'type' => 'check'
634 )
635 ),
636 'clear' => Array (
637 'label' => 'Clear:',
638 'config' => Array (
639 'type' => 'check',
640 'items' => Array (
641 Array('Constants', ''),
642 Array('Setup', '')
643 ),
644 'cols' => 2
645 )
646 ),
647 'sitetitle' => Array (
648 'label' => 'Website title:',
649 'config' => Array (
650 'type' => 'input',
651 'size' => '25',
652 'max' => '256'
653 )
654 ),
655 'constants' => Array (
656 'label' => 'Constants:',
657 'config' => Array (
658 'type' => 'text',
659 'cols' => '48',
660 'rows' => '10',
661 'wrap' => 'OFF'
662 )
663 ),
664 'resources' => Array (
665 'label' => 'Resources:',
666 'config' => Array (
667 'type' => 'group',
668 'internal_type' => 'file',
669 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico',
670 'max_size' => '1000',
671 'uploadfolder' => 'uploads/tf',
672 'show_thumbs' => '1',
673 'size' => '7',
674 'maxitems' => '100',
675 'minitems' => '0'
676 )
677 ),
678 'nextLevel' => Array (
679 'label' => 'Template on next level:',
680 'config' => Array (
681 'type' => 'group',
682 'internal_type' => 'db',
683 'allowed' => 'sys_template',
684 'show_thumbs' => '1',
685 'size' => '3',
686 'maxitems' => '1',
687 'minitems' => '0',
688 'default' => ''
689 )
690 ),
691 'include_static' => Array (
692 'label' => 'Include static:',
693 'config' => Array (
694 'type' => 'select',
695 'foreign_table' => 'static_template',
696 'foreign_table_where' => 'ORDER BY static_template.title DESC',
697 'size' => 10,
698 'maxitems' => 20,
699 'default' => ''
700 )
701 ),
702 'include_static_file' => Array(
703 'label' => 'Include static (from extensions):',
704 'config' => Array (
705 'type' => 'select',
706 'size' => 10,
707 'maxitems' => 20,
708 'items' => Array (
709 )
710 )
711 ),
712 'basedOn' => Array (
713 'label' => 'Include basis template:',
714 'config' => Array (
715 'type' => 'group',
716 'internal_type' => 'db',
717 'allowed' => 'sys_template',
718 'show_thumbs' => '1',
719 'size' => '3',
720 'maxitems' => '50',
721 'autoSizeMax' => 10,
722 'minitems' => '0',
723 'default' => '',
724 'wizards' => Array(
725 '_PADDING' => 4,
726 '_VERTICAL' => 1,
727 'edit' => Array(
728 'type' => 'popup',
729 'title' => 'Edit filemount',
730 'script' => 'wizard_edit.php',
731 'popup_onlyOpenIfSelected' => 1,
732 'icon' => 'edit2.gif',
733 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
734 ),
735 'add' => Array(
736 'type' => 'script',
737 'title' => 'Add new basis template',
738 'icon' => 'add.gif',
739 'params' => Array(
740 'table'=>'sys_template',
741 'pid' => '###CURRENT_PID###',
742 'setValue' => 'prepend'
743 ),
744 'script' => 'wizard_add.php',
745 )
746 )
747 )
748 ),
749 'includeStaticAfterBasedOn' => Array (
750 'label' => 'Include static AFTER basedOn:',
751 'exclude' => 1,
752 'config' => Array (
753 'type' => 'check',
754 'default' => '0'
755 )
756 ),
757 'config' => Array (
758 'label' => 'Setup:',
759 'config' => Array (
760 'type' => 'text',
761 'rows' => 10,
762 'cols' => 48,
763 'wizards' => Array(
764 '_PADDING' => 4,
765 '0' => Array(
766 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
767 'title' => 'TSref online',
768 'script' => 'wizard_tsconfig.php?mode=tsref',
769 'icon' => 'wizard_tsconfig.gif',
770 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
771 )
772 ),
773 'wrap' => 'OFF'
774 )
775 ),
776 'editorcfg' => Array (
777 'label' => 'Backend Editor Configuration:',
778 'config' => Array (
779 'type' => 'text',
780 'rows' => 4,
781 'cols' => 48,
782 'wrap' => 'OFF'
783 )
784 ),
785 'description' => Array (
786 'label' => 'Description:',
787 'config' => Array (
788 'type' => 'text',
789 'rows' => 10,
790 'cols' => 48
791 )
792 ),
793 'static_file_mode' => Array (
794 'label' => 'Static template files from T3 Extensions:',
795 'config' => Array (
796 'type' => 'select',
797 'items' => Array (
798 Array('Default (Include before if Root-flag is set)', '0'),
799 Array('Always include before this template record', '1'),
800 Array('Never include before this template record', '2'),
801 ),
802 'default' => '0'
803 )
804 ),
805 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
806 ),
807 'types' => Array (
808 '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')
809 ),
810 'palettes' => Array (
811 '1' => Array('showitem' => 'hidden,starttime,endtime'),
812 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
813 )
814 );
815
816
817
818
819
820 // ******************************************************************
821 // static_template
822 // ******************************************************************
823 $TCA['static_template'] = Array (
824 'ctrl' => $TCA['static_template']['ctrl'],
825 'interface' => Array (
826 'showRecordFieldList' => 'title,include_static,description'
827 ),
828 'columns' => Array (
829 'title' => Array (
830 'label' => 'Template title:',
831 'config' => Array (
832 'type' => 'input',
833 'size' => '25',
834 'max' => '256',
835 'eval' => 'required'
836 )
837 ),
838 'constants' => Array (
839 'label' => 'Constants:',
840 'config' => Array (
841 'type' => 'text',
842 'cols' => '48',
843 'rows' => '10',
844 'wrap' => 'OFF'
845 )
846 ),
847 'include_static' => Array (
848 'label' => 'Include static:',
849 'config' => Array (
850 'type' => 'select',
851 'foreign_table' => 'static_template',
852 'foreign_table_where' => 'ORDER BY static_template.title',
853 'size' => 10,
854 'maxitems' => 20,
855 'default' => ''
856 )
857 ),
858 'config' => Array (
859 'label' => 'Setup:',
860 'config' => Array (
861 'type' => 'text',
862 'rows' => 10,
863 'cols' => 48,
864 'wrap' => 'OFF'
865 )
866 ),
867 'editorcfg' => Array (
868 'label' => 'Backend Editor Configuration:',
869 'config' => Array (
870 'type' => 'text',
871 'rows' => 4,
872 'cols' => 48,
873 'wrap' => 'OFF'
874 )
875 ),
876 'description' => Array (
877 'label' => 'Description:',
878 'config' => Array (
879 'type' => 'text',
880 'rows' => 10,
881 'cols' => 48
882 )
883 )
884 ),
885 'types' => Array (
886 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
887 )
888 );
889
890
891
892 ?>