Added initial support for workspaces in core.
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Dynamic configuation of the system-related tables, typ. sys_* series
29 *
30 * $Id$
31 *
32 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
33 */
34
35
36
37
38
39 // ******************************************************************
40 // fe_users
41 //
42 // FrontEnd users - login on the website
43 // ******************************************************************
44 $TCA['fe_users'] = Array (
45 'ctrl' => $TCA['fe_users']['ctrl'],
46 'interface' => Array (
47 'showRecordFieldList' => 'username,password,usergroup,lockToDomain,name,title,address,zip,city,country,email,www,telephone,fax,disable,starttime,endtime'
48 ),
49 'feInterface' => $TCA['fe_users']['feInterface'],
50 'columns' => Array (
51 'username' => Array (
52 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.username',
53 'config' => Array (
54 'type' => 'input',
55 'size' => '20',
56 'max' => '50',
57 'eval' => 'nospace,lower,uniqueInPid,required'
58 )
59 ),
60 'password' => Array (
61 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.password',
62 'config' => Array (
63 'type' => 'input',
64 'size' => '10',
65 'max' => '40',
66 'eval' => 'nospace,required,password'
67 )
68 ),
69 'usergroup' => Array (
70 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.usergroup',
71 'config' => Array (
72 'type' => 'select',
73 'foreign_table' => 'fe_groups',
74 'size' => '3',
75 'minitems' => '1',
76 'maxitems' => '50'
77 )
78 ),
79 'lockToDomain' => Array (
80 'exclude' => 1,
81 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.lockToDomain',
82 'config' => Array (
83 'type' => 'input',
84 'size' => '20',
85 'eval' => 'trim',
86 'max' => '50',
87 'checkbox' => '',
88 'softref' => 'substitute'
89 )
90 ),
91 'name' => Array (
92 'exclude' => 1,
93 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
94 'config' => Array (
95 'type' => 'input',
96 'size' => '40',
97 'eval' => 'trim',
98 'max' => '80'
99 )
100 ),
101 'address' => Array (
102 'exclude' => 1,
103 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
104 'config' => Array (
105 'type' => 'text',
106 'cols' => '20',
107 'rows' => '3'
108 )
109 ),
110 'telephone' => Array (
111 'exclude' => 1,
112 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
113 'config' => Array (
114 'type' => 'input',
115 'eval' => 'trim',
116 'size' => '20',
117 'max' => '20'
118 )
119 ),
120 'fax' => Array (
121 'exclude' => 1,
122 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
123 'config' => Array (
124 'type' => 'input',
125 'size' => '20',
126 'eval' => 'trim',
127 'max' => '20'
128 )
129 ),
130 'email' => Array (
131 'exclude' => 1,
132 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
133 'config' => Array (
134 'type' => 'input',
135 'size' => '40',
136 'eval' => 'trim',
137 'max' => '80'
138 )
139 ),
140 'title' => Array (
141 'exclude' => 1,
142 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title_person',
143 'config' => Array (
144 'type' => 'input',
145 'size' => '20',
146 'eval' => 'trim',
147 'max' => '40'
148 )
149 ),
150 'zip' => Array (
151 'exclude' => 1,
152 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
153 'config' => Array (
154 'type' => 'input',
155 'eval' => 'trim',
156 'size' => '10',
157 'max' => '10'
158 )
159 ),
160 'city' => Array (
161 'exclude' => 1,
162 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
163 'config' => Array (
164 'type' => 'input',
165 'size' => '20',
166 'eval' => 'trim',
167 'max' => '50'
168 )
169 ),
170 'country' => Array (
171 'exclude' => 1,
172 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
173 'config' => Array (
174 'type' => 'input',
175 'size' => '20',
176 'eval' => 'trim',
177 'max' => '40'
178 )
179 ),
180 'www' => Array (
181 'exclude' => 1,
182 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
183 'config' => Array (
184 'type' => 'input',
185 'eval' => 'trim',
186 'size' => '20',
187 'max' => '80'
188 )
189 ),
190 'company' => Array (
191 'exclude' => 1,
192 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
193 'config' => Array (
194 'type' => 'input',
195 'eval' => 'trim',
196 'size' => '20',
197 'max' => '80'
198 )
199 ),
200 'image' => Array (
201 'exclude' => 1,
202 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
203 'config' => Array (
204 'type' => 'group',
205 'internal_type' => 'file',
206 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
207 'max_size' => '1000',
208 'uploadfolder' => 'uploads/pics',
209 'show_thumbs' => '1',
210 'size' => '3',
211 'maxitems' => '6',
212 'minitems' => '0'
213 )
214 ),
215 'disable' => Array (
216 'exclude' => 1,
217 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
218 'config' => Array (
219 'type' => 'check'
220 )
221 ),
222 'starttime' => Array (
223 'exclude' => 1,
224 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
225 'config' => Array (
226 'type' => 'input',
227 'size' => '8',
228 'max' => '20',
229 'eval' => 'date',
230 'default' => '0',
231 'checkbox' => '0'
232 )
233 ),
234 'endtime' => Array (
235 'exclude' => 1,
236 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
237 'config' => Array (
238 'type' => 'input',
239 'size' => '8',
240 'max' => '20',
241 'eval' => 'date',
242 'checkbox' => '0',
243 'default' => '0',
244 'range' => Array (
245 'upper' => mktime(0,0,0,12,31,2020),
246 )
247 )
248 ),
249 'TSconfig' => Array (
250 'exclude' => 1,
251 'label' => 'TSconfig:',
252 'config' => Array (
253 'type' => 'text',
254 'cols' => '40',
255 'rows' => '5',
256 'wizards' => Array(
257 '_PADDING' => 4,
258 '0' => Array(
259 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
260 'title' => 'TSconfig QuickReference',
261 'script' => 'wizard_tsconfig.php?mode=fe_users',
262 'icon' => 'wizard_tsconfig.gif',
263 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
264 )
265 ),
266 'softref' => 'TSconfig'
267 )
268 )
269 ),
270 'types' => Array (
271 '0' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, lockToDomain, --div--, name;;2;;3-3-3, address, zip, city, country, telephone, fax, email, www, image;;;;4-4-4, --div--, TSconfig;;;;5-5-5')
272 ),
273 'palettes' => Array (
274 '1' => Array('showitem' => 'disable, starttime, endtime'),
275 '2' => Array('showitem' => 'title,company')
276 )
277 );
278
279
280
281
282
283 // ******************************************************************
284 // fe_groups
285 //
286 // FrontEnd usergroups - Membership of these determines access to elements
287 // ******************************************************************
288 $TCA['fe_groups'] = Array (
289 'ctrl' => $TCA['fe_groups']['ctrl'],
290 'interface' => Array (
291 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
292 ),
293 'columns' => Array (
294 'hidden' => Array (
295 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
296 'exclude' => 1,
297 'config' => Array (
298 'type' => 'check',
299 'default' => '0'
300 )
301 ),
302 'title' => Array (
303 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
304 'config' => Array (
305 'type' => 'input',
306 'size' => '20',
307 'max' => '20',
308 'eval' => 'trim,required'
309 )
310 ),
311 'subgroup' => Array (
312 'exclude' => 1,
313 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.subgroup',
314 'config' => Array (
315 'type' => 'select',
316 'foreign_table' => 'fe_groups',
317 'foreign_table_where' => 'AND fe_groups.uid != ###THIS_UID### AND NOT fe_groups.hidden ORDER BY fe_groups.title',
318 'size' => 4,
319 'autoSizeMax' => 10,
320 'minitems' => 0,
321 'maxitems' => 20
322 )
323 ),
324 'lockToDomain' => Array (
325 'exclude' => 1,
326 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
327 'config' => Array (
328 'type' => 'input',
329 'size' => '20',
330 'eval' => 'trim',
331 'max' => '50',
332 'checkbox' => ''
333 )
334 ),
335 'description' => Array (
336 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
337 'config' => Array (
338 'type' => 'text',
339 'rows' => 5,
340 'cols' => 48
341 )
342 ),
343 'TSconfig' => Array (
344 'exclude' => 1,
345 'label' => 'TSconfig:',
346 'config' => Array (
347 'type' => 'text',
348 'cols' => '40',
349 'rows' => '5',
350 'wizards' => Array(
351 '_PADDING' => 4,
352 '0' => Array(
353 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
354 'title' => 'TSconfig QuickReference',
355 'script' => 'wizard_tsconfig.php?mode=fe_users',
356 'icon' => 'wizard_tsconfig.gif',
357 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
358 )
359 ),
360 'softref' => 'TSconfig'
361 )
362 )
363 ),
364 'types' => Array (
365 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,lockToDomain,description;;;;3-3-3, --div--, TSconfig;;;;5-5-5, subgroup;;;;6-6-6')
366 )
367 );
368
369
370
371
372 // ******************************************************************
373 // sys_domain
374 // ******************************************************************
375 $TCA['sys_domain'] = Array (
376 'ctrl' => $TCA['sys_domain']['ctrl'],
377 'interface' => Array (
378 'showRecordFieldList' => 'hidden,domainName,redirectTo'
379 ),
380 'columns' => Array (
381 'domainName' => Array (
382 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
383 'config' => Array (
384 'type' => 'input',
385 'size' => '35',
386 'max' => '80',
387 'eval' => 'required,unique,lower,trim',
388 'softref' => 'substitute'
389 ),
390 ),
391 'redirectTo' => Array (
392 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
393 'config' => Array (
394 'type' => 'input',
395 'size' => '35',
396 'max' => '120',
397 'checkbox' => '',
398 'default' => '',
399 'eval' => 'trim',
400 'softref' => 'substitute'
401 ),
402 ),
403 'hidden' => Array (
404 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
405 'exclude' => 1,
406 'config' => Array (
407 'type' => 'check',
408 'default' => '0'
409 )
410 ),
411 'prepend_params' => Array (
412 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
413 'exclude' => 1,
414 'config' => Array (
415 'type' => 'check',
416 'default' => '0'
417 )
418 )
419 ),
420 'types' => Array (
421 '1' => Array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
422 ),
423 'palettes' => Array (
424 '1' => Array('showitem' => 'redirectTo')
425 )
426 );
427
428
429
430
431
432 // ******************************************************************
433 // pages_language_overlay
434 // ******************************************************************
435 $TCA['pages_language_overlay'] = Array (
436 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
437 'interface' => Array (
438 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
439 ),
440 'columns' => Array (
441 'hidden' => Array (
442 'exclude' => 1,
443 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
444 'config' => Array (
445 'type' => 'check',
446 'default' => '1'
447 )
448 ),
449 'starttime' => Array (
450 'exclude' => 1,
451 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
452 'config' => Array (
453 'type' => 'input',
454 'size' => '8',
455 'max' => '20',
456 'eval' => 'date',
457 'checkbox' => '0',
458 'default' => '0'
459 )
460 ),
461 'endtime' => Array (
462 'exclude' => 1,
463 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
464 'config' => Array (
465 'type' => 'input',
466 'size' => '8',
467 'max' => '20',
468 'eval' => 'date',
469 'checkbox' => '0',
470 'default' => '0',
471 'range' => Array (
472 'upper' => mktime(0,0,0,12,31,2020),
473 )
474 )
475 ),
476 'title' => Array (
477 'label' => $TCA['pages']['columns']['title']['label'],
478 'l10n_cat' => 'text',
479 'config' => Array (
480 'type' => 'input',
481 'size' => '30',
482 'max' => '256',
483 'eval' => 'required'
484 )
485 ),
486 'subtitle' => Array (
487 'exclude' => 1,
488 'l10n_cat' => 'text',
489 'label' => $TCA['pages']['columns']['subtitle']['label'],
490 'config' => Array (
491 'type' => 'input',
492 'size' => '30',
493 'max' => '256',
494 'eval' => ''
495 )
496 ),
497 'nav_title' => Array (
498 'exclude' => 1,
499 'l10n_cat' => 'text',
500 'label' => $TCA['pages']['columns']['nav_title']['label'],
501 'config' => Array (
502 'type' => 'input',
503 'size' => '30',
504 'max' => '256',
505 'checkbox' => '',
506 'eval' => 'trim'
507 )
508 ),
509 'keywords' => Array (
510 'exclude' => 1,
511 'label' => $TCA['pages']['columns']['keywords']['label'],
512 'config' => Array (
513 'type' => 'text',
514 'cols' => '40',
515 'rows' => '3'
516 )
517 ),
518 'description' => Array (
519 'exclude' => 1,
520 'label' => $TCA['pages']['columns']['description']['label'],
521 'config' => Array (
522 'type' => 'input',
523 'size' => '40',
524 'eval' => 'trim'
525 )
526 ),
527 'abstract' => Array (
528 'exclude' => 1,
529 'label' => $TCA['pages']['columns']['abstract']['label'],
530 'config' => Array (
531 'type' => 'text',
532 'cols' => '40',
533 'rows' => '3'
534 )
535 ),
536 'author' => Array (
537 'exclude' => 1,
538 'label' => $TCA['pages']['columns']['author']['label'],
539 'config' => Array (
540 'type' => 'input',
541 'size' => '20',
542 'eval' => 'trim',
543 'max' => '80'
544 )
545 ),
546 'author_email' => Array (
547 'exclude' => 1,
548 'label' => $TCA['pages']['columns']['author']['label'],
549 'config' => Array (
550 'type' => 'input',
551 'size' => '20',
552 'eval' => 'trim',
553 'max' => '80'
554 )
555 ),
556 'media' => Array (
557 'exclude' => 1,
558 'label' => $TCA['pages']['columns']['media']['label'],
559 'config' => Array (
560 'type' => 'group',
561 'internal_type' => 'file',
562 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
563 'max_size' => '2000',
564 'uploadfolder' => 'uploads/media',
565 'show_thumbs' => '1',
566 'size' => '3',
567 'maxitems' => '5',
568 'minitems' => '0'
569 )
570 ),
571 'sys_language_uid' => Array (
572 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
573 'config' => Array (
574 'type' => 'select',
575 'foreign_table' => 'sys_language',
576 'foreign_table_where' => 'ORDER BY sys_language.title',
577 'items' => Array(
578 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
579 )
580 )
581 ),
582 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
583 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
584 't3ver_label' => Array (
585 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
586 'config' => Array (
587 'type' => 'input',
588 'size' => '30',
589 'max' => '30',
590 )
591 ),
592 ),
593 'types' => Array (
594 '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')
595 ),
596 'palettes' => Array (
597 '1' => Array('showitem' => 'starttime,endtime'),
598 '5' => Array('showitem' => 'author,author_email')
599 )
600 );
601
602
603
604 // ******************************************************************
605 // sys_template
606 // ******************************************************************
607 $TCA['sys_template'] = Array (
608 'ctrl' => $TCA['sys_template']['ctrl'],
609 'interface' => Array (
610 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
611 ),
612 'columns' => Array (
613 'title' => Array (
614 'label' => 'Template title:',
615 'config' => Array (
616 'type' => 'input',
617 'size' => '25',
618 'max' => '256',
619 'eval' => 'required'
620 )
621 ),
622 'hidden' => Array (
623 'label' => 'Deactivated:',
624 'exclude' => 1,
625 'config' => Array (
626 'type' => 'check',
627 'default' => '0'
628 )
629 ),
630 'starttime' => Array (
631 'label' => 'Start:',
632 'exclude' => 1,
633 'config' => Array (
634 'type' => 'input',
635 'size' => '8',
636 'max' => '20',
637 'eval' => 'date',
638 'checkbox' => '0',
639 'default' => '0'
640 )
641 ),
642 'endtime' => Array (
643 'label' => 'Stop:',
644 'exclude' => 1,
645 'config' => Array (
646 'type' => 'input',
647 'size' => '8',
648 'max' => '20',
649 'eval' => 'date',
650 'checkbox' => '0',
651 'default' => '0',
652 'range' => Array (
653 'upper' => mktime(0,0,0,12,31,2020),
654 )
655 )
656 ),
657 'root' => Array (
658 'label' => 'Rootlevel:',
659 'config' => Array (
660 'type' => 'check'
661 )
662 ),
663 'clear' => Array (
664 'label' => 'Clear:',
665 'config' => Array (
666 'type' => 'check',
667 'items' => Array (
668 Array('Constants', ''),
669 Array('Setup', '')
670 ),
671 'cols' => 2
672 )
673 ),
674 'sitetitle' => Array (
675 'label' => 'Website title:',
676 'config' => Array (
677 'type' => 'input',
678 'size' => '25',
679 'max' => '256'
680 )
681 ),
682 'constants' => Array (
683 'label' => 'Constants:',
684 'config' => Array (
685 'type' => 'text',
686 'cols' => '48',
687 'rows' => '10',
688 'wrap' => 'OFF',
689 'softref' => 'TStemplate,email[subst],url[subst]'
690 ),
691 ),
692 'resources' => Array (
693 'label' => 'Resources:',
694 'config' => Array (
695 'type' => 'group',
696 'internal_type' => 'file',
697 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico',
698 'max_size' => '1000',
699 'uploadfolder' => 'uploads/tf',
700 'show_thumbs' => '1',
701 'size' => '7',
702 'maxitems' => '100',
703 'minitems' => '0'
704 )
705 ),
706 'nextLevel' => Array (
707 'label' => 'Template on next level:',
708 'config' => Array (
709 'type' => 'group',
710 'internal_type' => 'db',
711 'allowed' => 'sys_template',
712 'show_thumbs' => '1',
713 'size' => '3',
714 'maxitems' => '1',
715 'minitems' => '0',
716 'default' => ''
717 )
718 ),
719 'include_static' => Array (
720 'label' => 'Include static:',
721 'config' => Array (
722 'type' => 'select',
723 'foreign_table' => 'static_template',
724 'foreign_table_where' => 'ORDER BY static_template.title DESC',
725 'size' => 10,
726 'maxitems' => 20,
727 'default' => '',
728 ),
729 ),
730 'include_static_file' => Array(
731 'label' => 'Include static (from extensions):',
732 'config' => Array (
733 'type' => 'select',
734 'size' => 10,
735 'maxitems' => 20,
736 'items' => Array (
737 ),
738 'softref' => 'ext_fileref'
739 )
740 ),
741 'basedOn' => Array (
742 'label' => 'Include basis template:',
743 'config' => Array (
744 'type' => 'group',
745 'internal_type' => 'db',
746 'allowed' => 'sys_template',
747 'show_thumbs' => '1',
748 'size' => '3',
749 'maxitems' => '50',
750 'autoSizeMax' => 10,
751 'minitems' => '0',
752 'default' => '',
753 'wizards' => Array(
754 '_PADDING' => 4,
755 '_VERTICAL' => 1,
756 'edit' => Array(
757 'type' => 'popup',
758 'title' => 'Edit filemount',
759 'script' => 'wizard_edit.php',
760 'popup_onlyOpenIfSelected' => 1,
761 'icon' => 'edit2.gif',
762 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
763 ),
764 'add' => Array(
765 'type' => 'script',
766 'title' => 'Add new basis template',
767 'icon' => 'add.gif',
768 'params' => Array(
769 'table'=>'sys_template',
770 'pid' => '###CURRENT_PID###',
771 'setValue' => 'prepend'
772 ),
773 'script' => 'wizard_add.php',
774 )
775 )
776 )
777 ),
778 'includeStaticAfterBasedOn' => Array (
779 'label' => 'Include static AFTER basedOn:',
780 'exclude' => 1,
781 'config' => Array (
782 'type' => 'check',
783 'default' => '0'
784 )
785 ),
786 'config' => Array (
787 'label' => 'Setup:',
788 'config' => Array (
789 'type' => 'text',
790 'rows' => 10,
791 'cols' => 48,
792 'wizards' => Array(
793 '_PADDING' => 4,
794 '0' => Array(
795 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
796 'title' => 'TSref online',
797 'script' => 'wizard_tsconfig.php?mode=tsref',
798 'icon' => 'wizard_tsconfig.gif',
799 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
800 )
801 ),
802 'wrap' => 'OFF',
803 'softref' => 'TStemplate,email[subst],url[subst]'
804 )
805 ),
806 'editorcfg' => Array (
807 'label' => 'Backend Editor Configuration:',
808 'config' => Array (
809 'type' => 'text',
810 'rows' => 4,
811 'cols' => 48,
812 'wrap' => 'OFF'
813 )
814 ),
815 'description' => Array (
816 'label' => 'Description:',
817 'config' => Array (
818 'type' => 'text',
819 'rows' => 10,
820 'cols' => 48
821 )
822 ),
823 'static_file_mode' => Array (
824 'label' => 'Static template files from T3 Extensions:',
825 'config' => Array (
826 'type' => 'select',
827 'items' => Array (
828 Array('Default (Include before if Root-flag is set)', '0'),
829 Array('Always include before this template record', '1'),
830 Array('Never include before this template record', '2'),
831 ),
832 'default' => '0'
833 )
834 ),
835 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
836 't3ver_label' => Array (
837 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
838 'config' => Array (
839 'type' => 'input',
840 'size' => '30',
841 'max' => '30',
842 )
843 ),
844 ),
845 'types' => Array (
846 '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')
847 ),
848 'palettes' => Array (
849 '1' => Array('showitem' => 'hidden,starttime,endtime'),
850 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
851 )
852 );
853
854
855
856
857
858 // ******************************************************************
859 // static_template
860 // ******************************************************************
861 $TCA['static_template'] = Array (
862 'ctrl' => $TCA['static_template']['ctrl'],
863 'interface' => Array (
864 'showRecordFieldList' => 'title,include_static,description'
865 ),
866 'columns' => Array (
867 'title' => Array (
868 'label' => 'Template title:',
869 'config' => Array (
870 'type' => 'input',
871 'size' => '25',
872 'max' => '256',
873 'eval' => 'required'
874 )
875 ),
876 'constants' => Array (
877 'label' => 'Constants:',
878 'config' => Array (
879 'type' => 'text',
880 'cols' => '48',
881 'rows' => '10',
882 'wrap' => 'OFF'
883 )
884 ),
885 'include_static' => Array (
886 'label' => 'Include static:',
887 'config' => Array (
888 'type' => 'select',
889 'foreign_table' => 'static_template',
890 'foreign_table_where' => 'ORDER BY static_template.title',
891 'size' => 10,
892 'maxitems' => 20,
893 'default' => ''
894 )
895 ),
896 'config' => Array (
897 'label' => 'Setup:',
898 'config' => Array (
899 'type' => 'text',
900 'rows' => 10,
901 'cols' => 48,
902 'wrap' => 'OFF'
903 )
904 ),
905 'editorcfg' => Array (
906 'label' => 'Backend Editor Configuration:',
907 'config' => Array (
908 'type' => 'text',
909 'rows' => 4,
910 'cols' => 48,
911 'wrap' => 'OFF'
912 )
913 ),
914 'description' => Array (
915 'label' => 'Description:',
916 'config' => Array (
917 'type' => 'text',
918 'rows' => 10,
919 'cols' => 48
920 )
921 )
922 ),
923 'types' => Array (
924 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
925 )
926 );
927
928
929
930 ?>