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