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