* Changed the default file folder for language flags (sys_languages) to the new t3lib...
[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
578
579
580 // ******************************************************************
581 // sys_language
582 // ******************************************************************
583 $TCA['sys_language'] = Array (
584 'ctrl' => $TCA['sys_language']['ctrl'],
585 'interface' => Array (
586 'showRecordFieldList' => 'hidden,title'
587 ),
588 'columns' => Array (
589 'title' => Array (
590 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
591 'config' => Array (
592 'type' => 'input',
593 'size' => '35',
594 'max' => '80',
595 'eval' => 'trim,required'
596 )
597 ),
598 'hidden' => Array (
599 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
600 'exclude' => 1,
601 'config' => Array (
602 'type' => 'check',
603 'default' => '0'
604 )
605 ),
606 'static_lang_isocode' => Array (
607 'exclude' => 1,
608 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_language.isocode',
609 'displayCond' => 'EXT:static_info_tables:LOADED:true',
610 'config' => Array (
611 'type' => 'select',
612 'items' => Array (
613 Array('',0),
614 ),
615 'foreign_table' => 'static_languages',
616 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
617 'size' => 1,
618 'minitems' => 0,
619 'maxitems' => 1,
620 )
621 ),
622 'flag' => array(
623 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_language.flag',
624 'config' => Array (
625 'type' => 'select',
626 'items' => Array (
627 Array('',0),
628 ),
629 'fileFolder' => 't3lib/gfx/flags/',
630 'fileFolder_extList' => 'png,jpg,jpeg,gif',
631 'fileFolder_recursions' => 0,
632 'selicon_cols' => 8,
633 'size' => 1,
634 'minitems' => 0,
635 'maxitems' => 1,
636 )
637 )
638 ),
639 'types' => Array (
640 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
641 )
642 );
643
644
645
646
647 // ******************************************************************
648 // sys_template
649 // ******************************************************************
650 $TCA['sys_template'] = Array (
651 'ctrl' => $TCA['sys_template']['ctrl'],
652 'interface' => Array (
653 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
654 ),
655 'columns' => Array (
656 'title' => Array (
657 'label' => 'Template title:',
658 'config' => Array (
659 'type' => 'input',
660 'size' => '25',
661 'max' => '256',
662 'eval' => 'required'
663 )
664 ),
665 'hidden' => Array (
666 'label' => 'Deactivated:',
667 'exclude' => 1,
668 'config' => Array (
669 'type' => 'check',
670 'default' => '0'
671 )
672 ),
673 'starttime' => Array (
674 'label' => 'Start:',
675 'exclude' => 1,
676 'config' => Array (
677 'type' => 'input',
678 'size' => '8',
679 'max' => '20',
680 'eval' => 'date',
681 'checkbox' => '0',
682 'default' => '0'
683 )
684 ),
685 'endtime' => Array (
686 'label' => 'Stop:',
687 'exclude' => 1,
688 'config' => Array (
689 'type' => 'input',
690 'size' => '8',
691 'max' => '20',
692 'eval' => 'date',
693 'checkbox' => '0',
694 'default' => '0',
695 'range' => Array (
696 'upper' => mktime(0,0,0,12,31,2020),
697 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
698 )
699 )
700 ),
701 'root' => Array (
702 'label' => 'Rootlevel:',
703 'config' => Array (
704 'type' => 'check'
705 )
706 ),
707 'clear' => Array (
708 'label' => 'Clear:',
709 'config' => Array (
710 'type' => 'check',
711 'items' => Array (
712 Array('Constants', ''),
713 Array('Setup', '')
714 ),
715 'cols' => 2
716 )
717 ),
718 'sitetitle' => Array (
719 'label' => 'Website title:',
720 'config' => Array (
721 'type' => 'input',
722 'size' => '25',
723 'max' => '256'
724 )
725 ),
726 'constants' => Array (
727 'label' => 'Constants:',
728 'config' => Array (
729 'type' => 'text',
730 'cols' => '48',
731 'rows' => '10',
732 'wrap' => 'OFF'
733 )
734 ),
735 'resources' => Array (
736 'label' => 'Resources:',
737 'config' => Array (
738 'type' => 'group',
739 'internal_type' => 'file',
740 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico',
741 'max_size' => '1000',
742 'uploadfolder' => 'uploads/tf',
743 'show_thumbs' => '1',
744 'size' => '7',
745 'maxitems' => '100',
746 'minitems' => '0'
747 )
748 ),
749 'nextLevel' => Array (
750 'label' => 'Template on next level:',
751 'config' => Array (
752 'type' => 'group',
753 'internal_type' => 'db',
754 'allowed' => 'sys_template',
755 'show_thumbs' => '1',
756 'size' => '3',
757 'maxitems' => '1',
758 'minitems' => '0',
759 'default' => ''
760 )
761 ),
762 'include_static' => Array (
763 'label' => 'Include static:',
764 'config' => Array (
765 'type' => 'select',
766 'foreign_table' => 'static_template',
767 'foreign_table_where' => 'ORDER BY static_template.title DESC',
768 'size' => 10,
769 'maxitems' => 20,
770 'default' => ''
771 )
772 ),
773 'include_static_file' => Array(
774 'label' => 'Include static (from extensions):',
775 'config' => Array (
776 'type' => 'select',
777 'size' => 10,
778 'maxitems' => 20,
779 'items' => Array (
780 )
781 )
782 ),
783 'basedOn' => Array (
784 'label' => 'Include basis template:',
785 'config' => Array (
786 'type' => 'group',
787 'internal_type' => 'db',
788 'allowed' => 'sys_template',
789 'show_thumbs' => '1',
790 'size' => '3',
791 'maxitems' => '50',
792 'autoSizeMax' => 10,
793 'minitems' => '0',
794 'default' => '',
795 'wizards' => Array(
796 '_PADDING' => 4,
797 '_VERTICAL' => 1,
798 'edit' => Array(
799 'type' => 'popup',
800 'title' => 'Edit filemount',
801 'script' => 'wizard_edit.php',
802 'popup_onlyOpenIfSelected' => 1,
803 'icon' => 'edit2.gif',
804 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
805 ),
806 'add' => Array(
807 'type' => 'script',
808 'title' => 'Add new basis template',
809 'icon' => 'add.gif',
810 'params' => Array(
811 'table'=>'sys_template',
812 'pid' => '###CURRENT_PID###',
813 'setValue' => 'prepend'
814 ),
815 'script' => 'wizard_add.php',
816 )
817 )
818 )
819 ),
820 'includeStaticAfterBasedOn' => Array (
821 'label' => 'Include static AFTER basedOn:',
822 'exclude' => 1,
823 'config' => Array (
824 'type' => 'check',
825 'default' => '0'
826 )
827 ),
828 'config' => Array (
829 'label' => 'Setup:',
830 'config' => Array (
831 'type' => 'text',
832 'rows' => 10,
833 'cols' => 48,
834 'wizards' => Array(
835 '_PADDING' => 4,
836 '0' => Array(
837 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
838 'title' => 'TSref online',
839 'script' => 'wizard_tsconfig.php?mode=tsref',
840 'icon' => 'wizard_tsconfig.gif',
841 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
842 )
843 ),
844 'wrap' => 'OFF'
845 )
846 ),
847 'editorcfg' => Array (
848 'label' => 'Backend Editor Configuration:',
849 'config' => Array (
850 'type' => 'text',
851 'rows' => 4,
852 'cols' => 48,
853 'wrap' => 'OFF'
854 )
855 ),
856 'description' => Array (
857 'label' => 'Description:',
858 'config' => Array (
859 'type' => 'text',
860 'rows' => 10,
861 'cols' => 48
862 )
863 ),
864 'static_file_mode' => Array (
865 'label' => 'Static template files from T3 Extensions:',
866 'config' => Array (
867 'type' => 'select',
868 'items' => Array (
869 Array('Default (Include before if Root-flag is set)', '0'),
870 Array('Always include before this template record', '1'),
871 Array('Never include before this template record', '2'),
872 ),
873 'default' => '0'
874 )
875 ),
876 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
877 ),
878 'types' => Array (
879 '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')
880 ),
881 'palettes' => Array (
882 '1' => Array('showitem' => 'hidden,starttime,endtime'),
883 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
884 )
885 );
886
887
888
889
890
891 // ******************************************************************
892 // static_template
893 // ******************************************************************
894 $TCA['static_template'] = Array (
895 'ctrl' => $TCA['static_template']['ctrl'],
896 'interface' => Array (
897 'showRecordFieldList' => 'title,include_static,description'
898 ),
899 'columns' => Array (
900 'title' => Array (
901 'label' => 'Template title:',
902 'config' => Array (
903 'type' => 'input',
904 'size' => '25',
905 'max' => '256',
906 'eval' => 'required'
907 )
908 ),
909 'constants' => Array (
910 'label' => 'Constants:',
911 'config' => Array (
912 'type' => 'text',
913 'cols' => '48',
914 'rows' => '10',
915 'wrap' => 'OFF'
916 )
917 ),
918 'include_static' => Array (
919 'label' => 'Include static:',
920 'config' => Array (
921 'type' => 'select',
922 'foreign_table' => 'static_template',
923 'foreign_table_where' => 'ORDER BY static_template.title',
924 'size' => 10,
925 'maxitems' => 20,
926 'default' => ''
927 )
928 ),
929 'config' => Array (
930 'label' => 'Setup:',
931 'config' => Array (
932 'type' => 'text',
933 'rows' => 10,
934 'cols' => 48,
935 'wrap' => 'OFF'
936 )
937 ),
938 'editorcfg' => Array (
939 'label' => 'Backend Editor Configuration:',
940 'config' => Array (
941 'type' => 'text',
942 'rows' => 4,
943 'cols' => 48,
944 'wrap' => 'OFF'
945 )
946 ),
947 'description' => Array (
948 'label' => 'Description:',
949 'config' => Array (
950 'type' => 'text',
951 'rows' => 10,
952 'cols' => 48
953 )
954 )
955 ),
956 'types' => Array (
957 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
958 )
959 );
960
961
962
963 ?>