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