Added $Id$ keywords, cleaned up comment tags
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2003 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 'keywords' => Array (
480 'exclude' => 1,
481 'label' => $TCA['pages']['columns']['keywords']['label'],
482 'config' => Array (
483 'type' => 'text',
484 'cols' => '40',
485 'rows' => '3'
486 )
487 ),
488 'description' => Array (
489 'exclude' => 1,
490 'label' => $TCA['pages']['columns']['description']['label'],
491 'config' => Array (
492 'type' => 'input',
493 'size' => '40',
494 'eval' => 'trim'
495 )
496 ),
497 'abstract' => Array (
498 'exclude' => 1,
499 'label' => $TCA['pages']['columns']['abstract']['label'],
500 'config' => Array (
501 'type' => 'text',
502 'cols' => '40',
503 'rows' => '3'
504 )
505 ),
506 'author' => Array (
507 'exclude' => 1,
508 'label' => $TCA['pages']['columns']['author']['label'],
509 'config' => Array (
510 'type' => 'input',
511 'size' => '20',
512 'eval' => 'trim',
513 'max' => '80'
514 )
515 ),
516 'author_email' => Array (
517 'exclude' => 1,
518 'label' => $TCA['pages']['columns']['author']['label'],
519 'config' => Array (
520 'type' => 'input',
521 'size' => '20',
522 'eval' => 'trim',
523 'max' => '80'
524 )
525 ),
526 'media' => Array (
527 'exclude' => 1,
528 'label' => $TCA['pages']['columns']['media']['label'],
529 'config' => Array (
530 'type' => 'group',
531 'internal_type' => 'file',
532 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
533 'max_size' => '2000',
534 'uploadfolder' => 'uploads/media',
535 'show_thumbs' => '1',
536 'size' => '3',
537 'maxitems' => '5',
538 'minitems' => '0'
539 )
540 ),
541 'sys_language_uid' => Array (
542 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
543 'config' => Array (
544 'type' => 'select',
545 'foreign_table' => 'sys_language',
546 'foreign_table_where' => 'ORDER BY sys_language.title',
547 'items' => Array(
548 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
549 )
550 )
551 ),
552 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
553 ),
554 'types' => Array (
555 '0' => Array('showitem' => 'hidden;;;;1-1-1, sys_language_uid, title;;;;2-2-2, subtitle, --div--, abstract;;5;;3-3-3, keywords, description, media;;;;4-4-4')
556 ),
557 'palettes' => Array (
558 '1' => Array('showitem' => 'starttime,endtime'),
559 '5' => Array('showitem' => 'author,author_email')
560 )
561 );
562
563
564
565
566
567
568
569 // ******************************************************************
570 // sys_language
571 // ******************************************************************
572 $TCA['sys_language'] = Array (
573 'ctrl' => $TCA['sys_language']['ctrl'],
574 'interface' => Array (
575 'showRecordFieldList' => 'hidden,title'
576 ),
577 'columns' => Array (
578 'title' => Array (
579 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
580 'config' => Array (
581 'type' => 'input',
582 'size' => '35',
583 'max' => '80',
584 'eval' => 'trim,required'
585 )
586 ),
587 'hidden' => Array (
588 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
589 'exclude' => 1,
590 'config' => Array (
591 'type' => 'check',
592 'default' => '0'
593 )
594 ),
595 'static_lang_isocode' => Array (
596 'exclude' => 1,
597 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_language.isocode',
598 'displayCond' => 'EXT:static_info_tables:LOADED:true',
599 'config' => Array (
600 'type' => 'select',
601 'items' => Array (
602 Array('',0),
603 ),
604 'foreign_table' => 'static_languages',
605 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
606 'size' => 1,
607 'minitems' => 0,
608 'maxitems' => 1,
609 )
610 ),
611 ),
612 'types' => Array (
613 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode')
614 )
615 );
616
617
618
619
620 // ******************************************************************
621 // sys_template
622 // ******************************************************************
623 $TCA['sys_template'] = Array (
624 'ctrl' => $TCA['sys_template']['ctrl'],
625 'interface' => Array (
626 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
627 ),
628 'columns' => Array (
629 'title' => Array (
630 'label' => 'Template title:',
631 'config' => Array (
632 'type' => 'input',
633 'size' => '25',
634 'max' => '256',
635 'eval' => 'required'
636 )
637 ),
638 'hidden' => Array (
639 'label' => 'Deactivated:',
640 'exclude' => 1,
641 'config' => Array (
642 'type' => 'check',
643 'default' => '0'
644 )
645 ),
646 'starttime' => Array (
647 'label' => 'Start:',
648 'exclude' => 1,
649 'config' => Array (
650 'type' => 'input',
651 'size' => '8',
652 'max' => '20',
653 'eval' => 'date',
654 'checkbox' => '0',
655 'default' => '0'
656 )
657 ),
658 'endtime' => Array (
659 'label' => 'Stop:',
660 'exclude' => 1,
661 'config' => Array (
662 'type' => 'input',
663 'size' => '8',
664 'max' => '20',
665 'eval' => 'date',
666 'checkbox' => '0',
667 'default' => '0',
668 'range' => Array (
669 'upper' => mktime(0,0,0,12,31,2020),
670 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
671 )
672 )
673 ),
674 'root' => Array (
675 'label' => 'Rootlevel:',
676 'config' => Array (
677 'type' => 'check'
678 )
679 ),
680 'clear' => Array (
681 'label' => 'Clear:',
682 'config' => Array (
683 'type' => 'check',
684 'items' => Array (
685 Array('Constants', ''),
686 Array('Setup', '')
687 ),
688 'cols' => 2
689 )
690 ),
691 'sitetitle' => Array (
692 'label' => 'Website title:',
693 'config' => Array (
694 'type' => 'input',
695 'size' => '25',
696 'max' => '256'
697 )
698 ),
699 'constants' => Array (
700 'label' => 'Constants:',
701 'config' => Array (
702 'type' => 'text',
703 'cols' => '48',
704 'rows' => '10',
705 'wrap' => 'OFF'
706 )
707 ),
708 'resources' => Array (
709 'label' => 'Resources:',
710 'config' => Array (
711 'type' => 'group',
712 'internal_type' => 'file',
713 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css,tmpl,inc,ico',
714 'max_size' => '1000',
715 'uploadfolder' => 'uploads/tf',
716 'show_thumbs' => '1',
717 'size' => '7',
718 'maxitems' => '100',
719 'minitems' => '0'
720 )
721 ),
722 'nextLevel' => Array (
723 'label' => 'Template on next level:',
724 'config' => Array (
725 'type' => 'group',
726 'internal_type' => 'db',
727 'allowed' => 'sys_template',
728 'show_thumbs' => '1',
729 'size' => '1',
730 'maxitems' => '1',
731 'minitems' => '0',
732 'default' => ''
733 )
734 ),
735 'include_static' => Array (
736 'label' => 'Include static:',
737 'config' => Array (
738 'type' => 'select',
739 'foreign_table' => 'static_template',
740 'foreign_table_where' => 'ORDER BY static_template.title DESC',
741 'size' => 10,
742 'maxitems' => 20,
743 'default' => ''
744 )
745 ),
746 'include_static_file' => Array(
747 'label' => 'Include static (from extensions):',
748 'config' => Array (
749 'type' => 'select',
750 'size' => 10,
751 'maxitems' => 20,
752 'items' => Array (
753 )
754 )
755 ),
756 'basedOn' => Array (
757 'label' => 'Include basis template:',
758 'config' => Array (
759 'type' => 'group',
760 'internal_type' => 'db',
761 'allowed' => 'sys_template',
762 'show_thumbs' => '1',
763 'size' => '1',
764 'maxitems' => '50',
765 'minitems' => '0',
766 'default' => '',
767 'wizards' => Array(
768 '_PADDING' => 4,
769 '_VERTICAL' => 1,
770 'edit' => Array(
771 'type' => 'popup',
772 'title' => 'Edit filemount',
773 'script' => 'wizard_edit.php',
774 'popup_onlyOpenIfSelected' => 1,
775 'icon' => 'edit2.gif',
776 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
777 ),
778 'add' => Array(
779 'type' => 'script',
780 'title' => 'Add new basis template',
781 'icon' => 'add.gif',
782 'params' => Array(
783 'table'=>'sys_template',
784 'pid' => '###CURRENT_PID###',
785 'setValue' => 'prepend'
786 ),
787 'script' => 'wizard_add.php',
788 )
789 )
790 )
791 ),
792 'includeStaticAfterBasedOn' => Array (
793 'label' => 'Include static AFTER basedOn:',
794 'exclude' => 1,
795 'config' => Array (
796 'type' => 'check',
797 'default' => '0'
798 )
799 ),
800 'config' => Array (
801 'label' => 'Setup:',
802 'config' => Array (
803 'type' => 'text',
804 'rows' => 10,
805 'cols' => 48,
806 'wizards' => Array(
807 '_PADDING' => 4,
808 '0' => Array(
809 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
810 'title' => 'TSref online',
811 'script' => 'wizard_tsconfig.php?mode=tsref',
812 'icon' => 'wizard_tsconfig.gif',
813 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
814 )
815 ),
816 'wrap' => 'OFF'
817 )
818 ),
819 'editorcfg' => Array (
820 'label' => 'Backend Editor Configuration:',
821 'config' => Array (
822 'type' => 'text',
823 'rows' => 4,
824 'cols' => 48,
825 'wrap' => 'OFF'
826 )
827 ),
828 'description' => Array (
829 'label' => 'Description:',
830 'config' => Array (
831 'type' => 'text',
832 'rows' => 10,
833 'cols' => 48
834 )
835 ),
836 'static_file_mode' => Array (
837 'label' => 'Static template files from T3 Extensions:',
838 'config' => Array (
839 'type' => 'select',
840 'items' => Array (
841 Array('Default (Include before if Root-flag is set)', '0'),
842 Array('Always include before this template record', '1'),
843 Array('Never include before this template record', '2'),
844 ),
845 'default' => '0'
846 )
847 ),
848 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
849 ),
850 'types' => Array (
851 '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')
852 ),
853 'palettes' => Array (
854 '1' => Array('showitem' => 'hidden,starttime,endtime'),
855 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
856 )
857 );
858
859
860
861
862
863 // ******************************************************************
864 // static_template
865 // ******************************************************************
866 $TCA['static_template'] = Array (
867 'ctrl' => $TCA['static_template']['ctrl'],
868 'interface' => Array (
869 'showRecordFieldList' => 'title,include_static,description'
870 ),
871 'columns' => Array (
872 'title' => Array (
873 'label' => 'Template title:',
874 'config' => Array (
875 'type' => 'input',
876 'size' => '25',
877 'max' => '256',
878 'eval' => 'required'
879 )
880 ),
881 'constants' => Array (
882 'label' => 'Constants:',
883 'config' => Array (
884 'type' => 'text',
885 'cols' => '48',
886 'rows' => '10',
887 'wrap' => 'OFF'
888 )
889 ),
890 'include_static' => Array (
891 'label' => 'Include static:',
892 'config' => Array (
893 'type' => 'select',
894 'foreign_table' => 'static_template',
895 'foreign_table_where' => 'ORDER BY static_template.title',
896 'size' => 10,
897 'maxitems' => 20,
898 'default' => ''
899 )
900 ),
901 'config' => Array (
902 'label' => 'Setup:',
903 'config' => Array (
904 'type' => 'text',
905 'rows' => 10,
906 'cols' => 48,
907 'wrap' => 'OFF'
908 )
909 ),
910 'editorcfg' => Array (
911 'label' => 'Backend Editor Configuration:',
912 'config' => Array (
913 'type' => 'text',
914 'rows' => 4,
915 'cols' => 48,
916 'wrap' => 'OFF'
917 )
918 ),
919 'description' => Array (
920 'label' => 'Description:',
921 'config' => Array (
922 'type' => 'text',
923 'rows' => 10,
924 'cols' => 48
925 )
926 )
927 ),
928 'types' => Array (
929 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
930 )
931 );
932
933
934
935 ?>