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