40477b80f8f1f55bd90f27f6758722f776b47cb5
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2004 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,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 '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 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
247 )
248 )
249 ),
250 'TSconfig' => Array (
251 'exclude' => 1,
252 'label' => 'TSconfig:',
253 'config' => Array (
254 'type' => 'text',
255 'cols' => '40',
256 'rows' => '5',
257 'wizards' => Array(
258 '_PADDING' => 4,
259 '0' => Array(
260 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
261 'title' => 'TSconfig QuickReference',
262 'script' => 'wizard_tsconfig.php?mode=fe_users',
263 'icon' => 'wizard_tsconfig.gif',
264 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
265 )
266 ),
267 'softref' => 'TSconfig'
268 )
269 )
270 ),
271 'types' => Array (
272 '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')
273 ),
274 'palettes' => Array (
275 '1' => Array('showitem' => 'disable, starttime, endtime'),
276 '2' => Array('showitem' => 'title,company')
277 )
278 );
279
280
281
282
283
284 // ******************************************************************
285 // fe_groups
286 //
287 // FrontEnd usergroups - Membership of these determines access to elements
288 // ******************************************************************
289 $TCA['fe_groups'] = Array (
290 'ctrl' => $TCA['fe_groups']['ctrl'],
291 'interface' => Array (
292 'showRecordFieldList' => 'title,hidden,lockToDomain,description'
293 ),
294 'columns' => Array (
295 'hidden' => Array (
296 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
297 'exclude' => 1,
298 'config' => Array (
299 'type' => 'check',
300 'default' => '0'
301 )
302 ),
303 'title' => Array (
304 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
305 'config' => Array (
306 'type' => 'input',
307 'size' => '20',
308 'max' => '20',
309 'eval' => 'trim,required'
310 )
311 ),
312 'lockToDomain' => Array (
313 'exclude' => 1,
314 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
315 'config' => Array (
316 'type' => 'input',
317 'size' => '20',
318 'eval' => 'trim',
319 'max' => '50',
320 'checkbox' => ''
321 )
322 ),
323 'description' => Array (
324 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
325 'config' => Array (
326 'type' => 'text',
327 'rows' => 5,
328 'cols' => 48
329 )
330 ),
331 'TSconfig' => Array (
332 'exclude' => 1,
333 'label' => 'TSconfig:',
334 'config' => Array (
335 'type' => 'text',
336 'cols' => '40',
337 'rows' => '5',
338 'wizards' => Array(
339 '_PADDING' => 4,
340 '0' => Array(
341 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
342 'title' => 'TSconfig QuickReference',
343 'script' => 'wizard_tsconfig.php?mode=fe_users',
344 'icon' => 'wizard_tsconfig.gif',
345 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
346 )
347 ),
348 'softref' => 'TSconfig'
349 )
350 )
351 ),
352 'types' => Array (
353 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,lockToDomain,description;;;;3-3-3, --div--, TSconfig;;;;5-5-5')
354 )
355 );
356
357
358
359
360 // ******************************************************************
361 // sys_domain
362 // ******************************************************************
363 $TCA['sys_domain'] = Array (
364 'ctrl' => $TCA['sys_domain']['ctrl'],
365 'interface' => Array (
366 'showRecordFieldList' => 'hidden,domainName,redirectTo'
367 ),
368 'columns' => Array (
369 'domainName' => Array (
370 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
371 'config' => Array (
372 'type' => 'input',
373 'size' => '35',
374 'max' => '80',
375 'eval' => 'required,unique,lower,trim',
376 'softref' => 'substitute'
377 ),
378 ),
379 'redirectTo' => Array (
380 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
381 'config' => Array (
382 'type' => 'input',
383 'size' => '35',
384 'max' => '120',
385 'checkbox' => '',
386 'default' => '',
387 'eval' => 'trim',
388 'softref' => 'substitute'
389 ),
390 ),
391 'hidden' => Array (
392 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
393 'exclude' => 1,
394 'config' => Array (
395 'type' => 'check',
396 'default' => '0'
397 )
398 ),
399 'prepend_params' => Array (
400 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
401 'exclude' => 1,
402 'config' => Array (
403 'type' => 'check',
404 'default' => '0'
405 )
406 )
407 ),
408 'types' => Array (
409 '1' => Array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params')
410 ),
411 'palettes' => Array (
412 '1' => Array('showitem' => 'redirectTo')
413 )
414 );
415
416
417
418
419
420 // ******************************************************************
421 // pages_language_overlay
422 // ******************************************************************
423 $TCA['pages_language_overlay'] = Array (
424 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
425 'interface' => Array (
426 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
427 ),
428 'columns' => Array (
429 'hidden' => Array (
430 'exclude' => 1,
431 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
432 'config' => Array (
433 'type' => 'check',
434 'default' => '1'
435 )
436 ),
437 'starttime' => Array (
438 'exclude' => 1,
439 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
440 'config' => Array (
441 'type' => 'input',
442 'size' => '8',
443 'max' => '20',
444 'eval' => 'date',
445 'checkbox' => '0',
446 'default' => '0'
447 )
448 ),
449 'endtime' => Array (
450 'exclude' => 1,
451 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
452 'config' => Array (
453 'type' => 'input',
454 'size' => '8',
455 'max' => '20',
456 'eval' => 'date',
457 'checkbox' => '0',
458 'default' => '0',
459 'range' => Array (
460 'upper' => mktime(0,0,0,12,31,2020),
461 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
462 )
463 )
464 ),
465 'title' => Array (
466 'label' => $TCA['pages']['columns']['title']['label'],
467 'config' => Array (
468 'type' => 'input',
469 'size' => '30',
470 'max' => '256',
471 'eval' => 'required'
472 )
473 ),
474 'subtitle' => Array (
475 'exclude' => 1,
476 'label' => $TCA['pages']['columns']['subtitle']['label'],
477 'config' => Array (
478 'type' => 'input',
479 'size' => '30',
480 'max' => '256',
481 'eval' => ''
482 )
483 ),
484 'nav_title' => Array (
485 'exclude' => 1,
486 'label' => $TCA['pages']['columns']['nav_title']['label'],
487 'config' => Array (
488 'type' => 'input',
489 'size' => '30',
490 'max' => '256',
491 'checkbox' => '',
492 'eval' => 'trim'
493 )
494 ),
495 'keywords' => Array (
496 'exclude' => 1,
497 'label' => $TCA['pages']['columns']['keywords']['label'],
498 'config' => Array (
499 'type' => 'text',
500 'cols' => '40',
501 'rows' => '3'
502 )
503 ),
504 'description' => Array (
505 'exclude' => 1,
506 'label' => $TCA['pages']['columns']['description']['label'],
507 'config' => Array (
508 'type' => 'input',
509 'size' => '40',
510 'eval' => 'trim'
511 )
512 ),
513 'abstract' => Array (
514 'exclude' => 1,
515 'label' => $TCA['pages']['columns']['abstract']['label'],
516 'config' => Array (
517 'type' => 'text',
518 'cols' => '40',
519 'rows' => '3'
520 )
521 ),
522 'author' => Array (
523 'exclude' => 1,
524 'label' => $TCA['pages']['columns']['author']['label'],
525 'config' => Array (
526 'type' => 'input',
527 'size' => '20',
528 'eval' => 'trim',
529 'max' => '80'
530 )
531 ),
532 'author_email' => Array (
533 'exclude' => 1,
534 'label' => $TCA['pages']['columns']['author']['label'],
535 'config' => Array (
536 'type' => 'input',
537 'size' => '20',
538 'eval' => 'trim',
539 'max' => '80'
540 )
541 ),
542 'media' => Array (
543 'exclude' => 1,
544 'label' => $TCA['pages']['columns']['media']['label'],
545 'config' => Array (
546 'type' => 'group',
547 'internal_type' => 'file',
548 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
549 'max_size' => '2000',
550 'uploadfolder' => 'uploads/media',
551 'show_thumbs' => '1',
552 'size' => '3',
553 'maxitems' => '5',
554 'minitems' => '0'
555 )
556 ),
557 'sys_language_uid' => Array (
558 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
559 'config' => Array (
560 'type' => 'select',
561 'foreign_table' => 'sys_language',
562 'foreign_table_where' => 'ORDER BY sys_language.title',
563 'items' => Array(
564 Array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
565 )
566 )
567 ),
568 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
569 'l18n_diffsource' => Array('config'=>array('type'=>'passthrough')),
570 't3ver_label' => Array (
571 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
572 'config' => Array (
573 'type' => 'input',
574 'size' => '30',
575 'max' => '30',
576 )
577 ),
578 ),
579 'types' => Array (
580 '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')
581 ),
582 'palettes' => Array (
583 '1' => Array('showitem' => 'starttime,endtime'),
584 '5' => Array('showitem' => 'author,author_email')
585 )
586 );
587
588
589
590 // ******************************************************************
591 // sys_template
592 // ******************************************************************
593 $TCA['sys_template'] = Array (
594 'ctrl' => $TCA['sys_template']['ctrl'],
595 'interface' => Array (
596 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
597 ),
598 'columns' => Array (
599 'title' => Array (
600 'label' => 'Template title:',
601 'config' => Array (
602 'type' => 'input',
603 'size' => '25',
604 'max' => '256',
605 'eval' => 'required'
606 )
607 ),
608 'hidden' => Array (
609 'label' => 'Deactivated:',
610 'exclude' => 1,
611 'config' => Array (
612 'type' => 'check',
613 'default' => '0'
614 )
615 ),
616 'starttime' => Array (
617 'label' => 'Start:',
618 'exclude' => 1,
619 'config' => Array (
620 'type' => 'input',
621 'size' => '8',
622 'max' => '20',
623 'eval' => 'date',
624 'checkbox' => '0',
625 'default' => '0'
626 )
627 ),
628 'endtime' => Array (
629 'label' => 'Stop:',
630 'exclude' => 1,
631 'config' => Array (
632 'type' => 'input',
633 'size' => '8',
634 'max' => '20',
635 'eval' => 'date',
636 'checkbox' => '0',
637 'default' => '0',
638 'range' => Array (
639 'upper' => mktime(0,0,0,12,31,2020),
640 'lower' => mktime(0,0,0,date('m')-1,date('d'),date('Y'))
641 )
642 )
643 ),
644 'root' => Array (
645 'label' => 'Rootlevel:',
646 'config' => Array (
647 'type' => 'check'
648 )
649 ),
650 'clear' => Array (
651 'label' => 'Clear:',
652 'config' => Array (
653 'type' => 'check',
654 'items' => Array (
655 Array('Constants', ''),
656 Array('Setup', '')
657 ),
658 'cols' => 2
659 )
660 ),
661 'sitetitle' => Array (
662 'label' => 'Website title:',
663 'config' => Array (
664 'type' => 'input',
665 'size' => '25',
666 'max' => '256'
667 )
668 ),
669 'constants' => Array (
670 'label' => 'Constants:',
671 'config' => Array (
672 'type' => 'text',
673 'cols' => '48',
674 'rows' => '10',
675 'wrap' => 'OFF',
676 'softref' => 'TStemplate,email[subst],url[subst]'
677 ),
678 ),
679 'resources' => Array (
680 'label' => 'Resources:',
681 'config' => Array (
682 'type' => 'group',
683 'internal_type' => 'file',
684 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico',
685 'max_size' => '1000',
686 'uploadfolder' => 'uploads/tf',
687 'show_thumbs' => '1',
688 'size' => '7',
689 'maxitems' => '100',
690 'minitems' => '0'
691 )
692 ),
693 'nextLevel' => Array (
694 'label' => 'Template on next level:',
695 'config' => Array (
696 'type' => 'group',
697 'internal_type' => 'db',
698 'allowed' => 'sys_template',
699 'show_thumbs' => '1',
700 'size' => '3',
701 'maxitems' => '1',
702 'minitems' => '0',
703 'default' => ''
704 )
705 ),
706 'include_static' => Array (
707 'label' => 'Include static:',
708 'config' => Array (
709 'type' => 'select',
710 'foreign_table' => 'static_template',
711 'foreign_table_where' => 'ORDER BY static_template.title DESC',
712 'size' => 10,
713 'maxitems' => 20,
714 'default' => '',
715 ),
716 ),
717 'include_static_file' => Array(
718 'label' => 'Include static (from extensions):',
719 'config' => Array (
720 'type' => 'select',
721 'size' => 10,
722 'maxitems' => 20,
723 'items' => Array (
724 ),
725 'softref' => 'ext_fileref'
726 )
727 ),
728 'basedOn' => Array (
729 'label' => 'Include basis template:',
730 'config' => Array (
731 'type' => 'group',
732 'internal_type' => 'db',
733 'allowed' => 'sys_template',
734 'show_thumbs' => '1',
735 'size' => '3',
736 'maxitems' => '50',
737 'autoSizeMax' => 10,
738 'minitems' => '0',
739 'default' => '',
740 'wizards' => Array(
741 '_PADDING' => 4,
742 '_VERTICAL' => 1,
743 'edit' => Array(
744 'type' => 'popup',
745 'title' => 'Edit filemount',
746 'script' => 'wizard_edit.php',
747 'popup_onlyOpenIfSelected' => 1,
748 'icon' => 'edit2.gif',
749 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
750 ),
751 'add' => Array(
752 'type' => 'script',
753 'title' => 'Add new basis template',
754 'icon' => 'add.gif',
755 'params' => Array(
756 'table'=>'sys_template',
757 'pid' => '###CURRENT_PID###',
758 'setValue' => 'prepend'
759 ),
760 'script' => 'wizard_add.php',
761 )
762 )
763 )
764 ),
765 'includeStaticAfterBasedOn' => Array (
766 'label' => 'Include static AFTER basedOn:',
767 'exclude' => 1,
768 'config' => Array (
769 'type' => 'check',
770 'default' => '0'
771 )
772 ),
773 'config' => Array (
774 'label' => 'Setup:',
775 'config' => Array (
776 'type' => 'text',
777 'rows' => 10,
778 'cols' => 48,
779 'wizards' => Array(
780 '_PADDING' => 4,
781 '0' => Array(
782 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
783 'title' => 'TSref online',
784 'script' => 'wizard_tsconfig.php?mode=tsref',
785 'icon' => 'wizard_tsconfig.gif',
786 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
787 )
788 ),
789 'wrap' => 'OFF',
790 'softref' => 'TStemplate,email[subst],url[subst]'
791 )
792 ),
793 'editorcfg' => Array (
794 'label' => 'Backend Editor Configuration:',
795 'config' => Array (
796 'type' => 'text',
797 'rows' => 4,
798 'cols' => 48,
799 'wrap' => 'OFF'
800 )
801 ),
802 'description' => Array (
803 'label' => 'Description:',
804 'config' => Array (
805 'type' => 'text',
806 'rows' => 10,
807 'cols' => 48
808 )
809 ),
810 'static_file_mode' => Array (
811 'label' => 'Static template files from T3 Extensions:',
812 'config' => Array (
813 'type' => 'select',
814 'items' => Array (
815 Array('Default (Include before if Root-flag is set)', '0'),
816 Array('Always include before this template record', '1'),
817 Array('Never include before this template record', '2'),
818 ),
819 'default' => '0'
820 )
821 ),
822 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
823 't3ver_label' => Array (
824 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
825 'config' => Array (
826 'type' => 'input',
827 'size' => '30',
828 'max' => '30',
829 )
830 ),
831 ),
832 'types' => Array (
833 '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')
834 ),
835 'palettes' => Array (
836 '1' => Array('showitem' => 'hidden,starttime,endtime'),
837 '2' => Array('showitem' => 'includeStaticAfterBasedOn')
838 )
839 );
840
841
842
843
844
845 // ******************************************************************
846 // static_template
847 // ******************************************************************
848 $TCA['static_template'] = Array (
849 'ctrl' => $TCA['static_template']['ctrl'],
850 'interface' => Array (
851 'showRecordFieldList' => 'title,include_static,description'
852 ),
853 'columns' => Array (
854 'title' => Array (
855 'label' => 'Template title:',
856 'config' => Array (
857 'type' => 'input',
858 'size' => '25',
859 'max' => '256',
860 'eval' => 'required'
861 )
862 ),
863 'constants' => Array (
864 'label' => 'Constants:',
865 'config' => Array (
866 'type' => 'text',
867 'cols' => '48',
868 'rows' => '10',
869 'wrap' => 'OFF'
870 )
871 ),
872 'include_static' => Array (
873 'label' => 'Include static:',
874 'config' => Array (
875 'type' => 'select',
876 'foreign_table' => 'static_template',
877 'foreign_table_where' => 'ORDER BY static_template.title',
878 'size' => 10,
879 'maxitems' => 20,
880 'default' => ''
881 )
882 ),
883 'config' => Array (
884 'label' => 'Setup:',
885 'config' => Array (
886 'type' => 'text',
887 'rows' => 10,
888 'cols' => 48,
889 'wrap' => 'OFF'
890 )
891 ),
892 'editorcfg' => Array (
893 'label' => 'Backend Editor Configuration:',
894 'config' => Array (
895 'type' => 'text',
896 'rows' => 4,
897 'cols' => 48,
898 'wrap' => 'OFF'
899 )
900 ),
901 'description' => Array (
902 'label' => 'Description:',
903 'config' => Array (
904 'type' => 'text',
905 'rows' => 10,
906 'cols' => 48
907 )
908 )
909 ),
910 'types' => Array (
911 '1' => Array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
912 )
913 );
914
915
916
917 ?>