Fixed bug #9046: Nested domain linking
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tbl_cms.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2009 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,lastlogin'
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 'foreign_table_where' => 'ORDER BY fe_groups.title',
75 'size' => '6',
76 'minitems' => '1',
77 'maxitems' => '50'
78 )
79 ),
80 'lockToDomain' => array(
81 'exclude' => 1,
82 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_users.lockToDomain',
83 'config' => array(
84 'type' => 'input',
85 'size' => '20',
86 'eval' => 'trim',
87 'max' => '50',
88 'checkbox' => '',
89 'softref' => 'substitute'
90 )
91 ),
92 'name' => array(
93 'exclude' => 1,
94 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.name',
95 'config' => array(
96 'type' => 'input',
97 'size' => '40',
98 'eval' => 'trim',
99 'max' => '80'
100 )
101 ),
102 'address' => array(
103 'exclude' => 1,
104 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.address',
105 'config' => array(
106 'type' => 'text',
107 'cols' => '20',
108 'rows' => '3'
109 )
110 ),
111 'telephone' => array(
112 'exclude' => 1,
113 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.phone',
114 'config' => array(
115 'type' => 'input',
116 'eval' => 'trim',
117 'size' => '20',
118 'max' => '20'
119 )
120 ),
121 'fax' => array(
122 'exclude' => 1,
123 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.fax',
124 'config' => array(
125 'type' => 'input',
126 'size' => '20',
127 'eval' => 'trim',
128 'max' => '20'
129 )
130 ),
131 'email' => array(
132 'exclude' => 1,
133 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.email',
134 'config' => array(
135 'type' => 'input',
136 'size' => '20',
137 'eval' => 'trim',
138 'max' => '80'
139 )
140 ),
141 'title' => array(
142 'exclude' => 1,
143 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title_person',
144 'config' => array(
145 'type' => 'input',
146 'size' => '20',
147 'eval' => 'trim',
148 'max' => '40'
149 )
150 ),
151 'zip' => array(
152 'exclude' => 1,
153 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.zip',
154 'config' => array(
155 'type' => 'input',
156 'eval' => 'trim',
157 'size' => '10',
158 'max' => '10'
159 )
160 ),
161 'city' => array(
162 'exclude' => 1,
163 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.city',
164 'config' => array(
165 'type' => 'input',
166 'size' => '20',
167 'eval' => 'trim',
168 'max' => '50'
169 )
170 ),
171 'country' => array(
172 'exclude' => 1,
173 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.country',
174 'config' => array(
175 'type' => 'input',
176 'size' => '20',
177 'eval' => 'trim',
178 'max' => '40'
179 )
180 ),
181 'www' => array(
182 'exclude' => 1,
183 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.www',
184 'config' => array(
185 'type' => 'input',
186 'eval' => 'trim',
187 'size' => '20',
188 'max' => '80'
189 )
190 ),
191 'company' => array(
192 'exclude' => 1,
193 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.company',
194 'config' => array(
195 'type' => 'input',
196 'eval' => 'trim',
197 'size' => '20',
198 'max' => '80'
199 )
200 ),
201 'image' => array(
202 'exclude' => 1,
203 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.image',
204 'config' => array(
205 'type' => 'group',
206 'internal_type' => 'file',
207 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
208 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
209 'uploadfolder' => 'uploads/pics',
210 'show_thumbs' => '1',
211 'size' => '3',
212 'maxitems' => '6',
213 'minitems' => '0'
214 )
215 ),
216 'disable' => array(
217 'exclude' => 1,
218 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
219 'config' => array(
220 'type' => 'check'
221 )
222 ),
223 'starttime' => array(
224 'exclude' => 1,
225 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
226 'config' => array(
227 'type' => 'input',
228 'size' => '8',
229 'max' => '20',
230 'eval' => 'date',
231 'default' => '0',
232 'checkbox' => '0'
233 )
234 ),
235 'endtime' => array(
236 'exclude' => 1,
237 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
238 'config' => array(
239 'type' => 'input',
240 'size' => '8',
241 'max' => '20',
242 'eval' => 'date',
243 'checkbox' => '0',
244 'default' => '0',
245 'range' => array(
246 'upper' => mktime(0,0,0,12,31,2020),
247 )
248 )
249 ),
250 'TSconfig' => array(
251 'exclude' => 1,
252 'label' => 'TSconfig:',
253 'config' => array(
254 'type' => 'text',
255 'cols' => '40',
256 'rows' => '10',
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 'defaultExtras' => 'fixed-font : enable-tab',
270 ),
271 'lastlogin' => array(
272 'exclude' => 1,
273 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin',
274 'config' => array(
275 'type' => 'input',
276 'readOnly' => '1',
277 'size' => '12',
278 'eval' => 'datetime',
279 )
280 )
281 ),
282 'types' => array(
283 '0' => array('showitem' => '
284 disable,username;;;;1-1-1, password, usergroup, lastlogin;;;;1-1-1,
285 --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,
286 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
287 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.access, starttime, endtime,
288 --div--;LLL:EXT:cms/locallang_tca.xml:fe_users.tabs.extended
289
290 ')
291 ),
292 'palettes' => array(
293 '1' => array('showitem' => 'title,company')
294 )
295 );
296
297
298
299
300
301 // ******************************************************************
302 // fe_groups
303 //
304 // FrontEnd usergroups - Membership of these determines access to elements
305 // ******************************************************************
306 $TCA['fe_groups'] = array(
307 'ctrl' => $TCA['fe_groups']['ctrl'],
308 'interface' => array(
309 'showRecordFieldList' => 'title,hidden,subgroup,lockToDomain,description'
310 ),
311 'columns' => array(
312 'hidden' => array(
313 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
314 'exclude' => 1,
315 'config' => array(
316 'type' => 'check',
317 'default' => '0'
318 )
319 ),
320 'title' => array(
321 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.title',
322 'config' => array(
323 'type' => 'input',
324 'size' => '20',
325 'max' => '50',
326 'eval' => 'trim,required'
327 )
328 ),
329 'subgroup' => array(
330 'exclude' => 1,
331 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.subgroup',
332 'config' => array(
333 'type' => 'select',
334 'foreign_table' => 'fe_groups',
335 'foreign_table_where' => 'AND NOT(fe_groups.uid = ###THIS_UID###) AND fe_groups.hidden=0 ORDER BY fe_groups.title',
336 'size' => 6,
337 'autoSizeMax' => 10,
338 'minitems' => 0,
339 'maxitems' => 20
340 )
341 ),
342 'lockToDomain' => array(
343 'exclude' => 1,
344 'label' => 'LLL:EXT:cms/locallang_tca.php:fe_groups.lockToDomain',
345 'config' => array(
346 'type' => 'input',
347 'size' => '20',
348 'eval' => 'trim',
349 'max' => '50',
350 'checkbox' => ''
351 )
352 ),
353 'description' => array(
354 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
355 'config' => array(
356 'type' => 'text',
357 'rows' => 5,
358 'cols' => 48
359 )
360 ),
361 'TSconfig' => array(
362 'exclude' => 1,
363 'label' => 'TSconfig:',
364 'config' => array(
365 'type' => 'text',
366 'cols' => '40',
367 'rows' => '10',
368 'wizards' => array(
369 '_PADDING' => 4,
370 '0' => array(
371 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
372 'title' => 'TSconfig QuickReference',
373 'script' => 'wizard_tsconfig.php?mode=fe_users',
374 'icon' => 'wizard_tsconfig.gif',
375 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
376 )
377 ),
378 'softref' => 'TSconfig'
379 ),
380 'defaultExtras' => 'fixed-font : enable-tab',
381 )
382 ),
383 'types' => array(
384 '0' => array('showitem' => '
385 hidden;;;;1-1-1,title;;;;2-2-2,description,subgroup;;;;3-3-3,
386 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.options, lockToDomain;;;;1-1-1, TSconfig;;;;2-2-2,
387 --div--;LLL:EXT:cms/locallang_tca.xml:fe_groups.tabs.extended
388 ')
389 )
390 );
391
392
393
394
395 // ******************************************************************
396 // sys_domain
397 // ******************************************************************
398 $TCA['sys_domain'] = array(
399 'ctrl' => $TCA['sys_domain']['ctrl'],
400 'interface' => array(
401 'showRecordFieldList' => 'hidden,domainName,redirectTo'
402 ),
403 'columns' => array(
404 'domainName' => array(
405 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.domainName',
406 'config' => array(
407 'type' => 'input',
408 'size' => '35',
409 'max' => '80',
410 'eval' => 'required,unique,lower,trim',
411 'softref' => 'substitute'
412 ),
413 ),
414 'redirectTo' => array(
415 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.redirectTo',
416 'config' => array(
417 'type' => 'input',
418 'size' => '35',
419 'max' => '120',
420 'checkbox' => '',
421 'default' => '',
422 'eval' => 'trim',
423 'softref' => 'substitute'
424 ),
425 ),
426 'redirectHttpStatusCode' => array(
427 'exclude' => 1,
428 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode',
429 'config' => array(
430 'type' => 'select',
431 'items' => array(
432 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.301', '301'),
433 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.302', '302'),
434 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.303', '303'),
435 array('LLL:EXT:cms/locallang_tca.xml:sys_domain.redirectHttpStatusCode.307', '307'),
436 ),
437 'size' => 1,
438 'maxitems' => 1,
439 ),
440 ),
441 'hidden' => array(
442 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
443 'exclude' => 1,
444 'config' => array(
445 'type' => 'check',
446 'default' => '0'
447 )
448 ),
449 'prepend_params' => array(
450 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.prepend_params',
451 'exclude' => 1,
452 'config' => array(
453 'type' => 'check',
454 'default' => '0'
455 )
456 ),
457 'forced' => array(
458 'label' => 'LLL:EXT:cms/locallang_tca.php:sys_domain.forced',
459 'exclude' => 1,
460 'config' => array(
461 'type' => 'check',
462 'default' => '1'
463 )
464 )
465 ),
466 'types' => array(
467 '1' => array('showitem' => 'hidden;;;;1-1-1,domainName;;1;;3-3-3,prepend_params,forced;;;;4-4-4')
468 ),
469 'palettes' => array(
470 '1' => array('showitem' => 'redirectTo, redirectHttpStatusCode')
471 )
472 );
473
474
475
476
477
478 // ******************************************************************
479 // pages_language_overlay
480 // ******************************************************************
481 $TCA['pages_language_overlay'] = array(
482 'ctrl' => $TCA['pages_language_overlay']['ctrl'],
483 'interface' => array(
484 'showRecordFieldList' => 'title,hidden,starttime,endtime,keywords,description,abstract'
485 ),
486 'columns' => array(
487 'doktype' => $TCA['pages']['columns']['doktype'],
488 'hidden' => array(
489 'exclude' => 1,
490 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
491 'config' => array(
492 'type' => 'check',
493 'default' => '0'
494 )
495 ),
496 'starttime' => array(
497 'exclude' => 1,
498 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
499 'config' => array(
500 'type' => 'input',
501 'size' => '8',
502 'max' => '20',
503 'eval' => 'date',
504 'checkbox' => '0',
505 'default' => '0'
506 )
507 ),
508 'endtime' => array(
509 'exclude' => 1,
510 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
511 'config' => array(
512 'type' => 'input',
513 'size' => '8',
514 'max' => '20',
515 'eval' => 'date',
516 'checkbox' => '0',
517 'default' => '0',
518 'range' => array(
519 'upper' => mktime(0,0,0,12,31,2020),
520 )
521 )
522 ),
523 'title' => array(
524 'l10n_mode' => 'prefixLangTitle',
525 'label' => $TCA['pages']['columns']['title']['label'],
526 'l10n_cat' => 'text',
527 'config' => array(
528 'type' => 'input',
529 'size' => '30',
530 'max' => '256',
531 'eval' => 'required'
532 )
533 ),
534 'subtitle' => array(
535 'exclude' => 1,
536 'l10n_cat' => 'text',
537 'label' => $TCA['pages']['columns']['subtitle']['label'],
538 'config' => array(
539 'type' => 'input',
540 'size' => '30',
541 'max' => '256',
542 'eval' => ''
543 )
544 ),
545 'nav_title' => array(
546 'exclude' => 1,
547 'l10n_cat' => 'text',
548 'label' => $TCA['pages']['columns']['nav_title']['label'],
549 'config' => array(
550 'type' => 'input',
551 'size' => '30',
552 'max' => '256',
553 'checkbox' => '',
554 'eval' => 'trim'
555 )
556 ),
557 'keywords' => array(
558 'exclude' => 1,
559 'label' => $TCA['pages']['columns']['keywords']['label'],
560 'config' => array(
561 'type' => 'text',
562 'cols' => '40',
563 'rows' => '3'
564 )
565 ),
566 'description' => array(
567 'exclude' => 1,
568 'label' => $TCA['pages']['columns']['description']['label'],
569 'config' => array(
570 'type' => 'text',
571 'cols' => '40',
572 'rows' => '3'
573 )
574 ),
575 'abstract' => array(
576 'exclude' => 1,
577 'label' => $TCA['pages']['columns']['abstract']['label'],
578 'config' => array(
579 'type' => 'text',
580 'cols' => '40',
581 'rows' => '3'
582 )
583 ),
584 'author' => array(
585 'exclude' => 1,
586 'label' => $TCA['pages']['columns']['author']['label'],
587 'config' => array(
588 'type' => 'input',
589 'size' => '20',
590 'eval' => 'trim',
591 'max' => '80'
592 )
593 ),
594 'author_email' => array(
595 'exclude' => 1,
596 'label' => $TCA['pages']['columns']['author_email']['label'],
597 'config' => array(
598 'type' => 'input',
599 'size' => '20',
600 'eval' => 'trim',
601 'max' => '80'
602 )
603 ),
604 'media' => array(
605 'exclude' => 1,
606 'label' => $TCA['pages']['columns']['media']['label'],
607 'config' => array(
608 'type' => 'group',
609 'internal_type' => 'file',
610 'allowed' => $TCA['pages']['columns']['media']['config']['allowed'],
611 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
612 'uploadfolder' => 'uploads/media',
613 'show_thumbs' => '1',
614 'size' => '3',
615 'maxitems' => '5',
616 'minitems' => '0'
617 )
618 ),
619 'url' => array(
620 'exclude' => 1,
621 'label' => 'LLL:EXT:cms/locallang_tca.php:pages.url',
622 'config' => array(
623 'type' => 'input',
624 'size' => '25',
625 'max' => '255',
626 'eval' => 'trim'
627 )
628 ),
629 'urltype' => array(
630 'exclude' => 1,
631 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
632 'config' => array(
633 'type' => 'select',
634 'items' => $TCA['pages']['columns']['urltype']['config']['items'],
635 'default' => '1'
636 )
637 ),
638 'shortcut' => array (
639 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
640 'config' => array (
641 'type' => 'group',
642 'internal_type' => 'db',
643 'allowed' => 'pages',
644 'size' => '3',
645 'maxitems' => '1',
646 'minitems' => '0',
647 'show_thumbs' => '1',
648 'wizards' => array(
649 'suggest' => array(
650 'type' => 'suggest',
651 ),
652 ),
653 ),
654 ),
655 'shortcut_mode' => array (
656 'exclude' => 1,
657 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
658 'config' => array (
659 'type' => 'select',
660 'items' => $TCA['pages']['columns']['shortcut_mode']['config']['items'],
661 'default' => '0'
662 )
663 ),
664 'sys_language_uid' => array(
665 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
666 'config' => array(
667 'type' => 'select',
668 'foreign_table' => 'sys_language',
669 'foreign_table_where' => 'ORDER BY sys_language.title',
670 'items' => array(
671 array('LLL:EXT:lang/locallang_general.php:LGL.default_value',0)
672 )
673 )
674 ),
675 'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
676 'l18n_diffsource' => array('config'=>array('type'=>'passthrough')),
677 't3ver_label' => array(
678 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
679 'config' => array(
680 'type' => 'input',
681 'size' => '30',
682 'max' => '255',
683 )
684 ),
685 ),
686 'types' => array(
687 // Standard
688 '1' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata, --palette--;LLL:EXT:lang/locallang_general.xml:LGL.author;5;;3-3-3, abstract, keywords, description, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
689
690 // External URL - URL and URL type can be different for the translated page
691 '3' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.url, url;;;;3-3-3, urltype, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
692
693 // Shortcut - shortcut and shortcut mode can be different for the translated page
694 '4' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.shortcut, shortcut;;;;3-3-3, shortcut_mode, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
695
696 // Mount Point - mount point options can _NOT_ be different for the translated page
697 '7' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2, subtitle, nav_title, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files, media;;;;4-4-4, --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access, starttime, endtime'),
698
699 // Separator
700 '199' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2'),
701
702 // Sysfolder
703 '254' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;LLL:EXT:lang/locallang_general.xml:LGL.title;;;2-2-2'),
704
705 // Recycler
706 '255' => array('showitem' => 'doktype;;;;1-1-1, hidden, sys_language_uid, title;;;;2-2-2')
707 ),
708 'palettes' => array(
709 '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true)
710 )
711 );
712
713
714
715 // ******************************************************************
716 // sys_template
717 // ******************************************************************
718 $TCA['sys_template'] = array(
719 'ctrl' => $TCA['sys_template']['ctrl'],
720 'interface' => array(
721 'showRecordFieldList' => 'title,clear,root,include_static,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
722 ),
723 'columns' => array(
724 'title' => array(
725 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
726 'config' => array(
727 'type' => 'input',
728 'size' => '25',
729 'max' => '256',
730 'eval' => 'required'
731 )
732 ),
733 'hidden' => array(
734 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
735 'exclude' => 1,
736 'config' => array(
737 'type' => 'check',
738 'default' => '0'
739 )
740 ),
741 'starttime' => array(
742 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
743 'exclude' => 1,
744 'config' => array(
745 'type' => 'input',
746 'size' => '8',
747 'max' => '20',
748 'eval' => 'date',
749 'checkbox' => '0',
750 'default' => '0'
751 )
752 ),
753 'endtime' => array(
754 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
755 'exclude' => 1,
756 'config' => array(
757 'type' => 'input',
758 'size' => '8',
759 'max' => '20',
760 'eval' => 'date',
761 'checkbox' => '0',
762 'default' => '0',
763 'range' => array(
764 'upper' => mktime(0,0,0,12,31,2020),
765 )
766 )
767 ),
768 'root' => array(
769 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
770 'config' => array(
771 'type' => 'check'
772 )
773 ),
774 'clear' => array(
775 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
776 'config' => array(
777 'type' => 'check',
778 'items' => array(
779 array('Constants', ''),
780 array('Setup', '')
781 ),
782 'cols' => 2
783 )
784 ),
785 'sitetitle' => array(
786 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
787 'config' => array(
788 'type' => 'input',
789 'size' => '25',
790 'max' => '256'
791 )
792 ),
793 'constants' => array(
794 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
795 'config' => array(
796 'type' => 'text',
797 'cols' => '48',
798 'rows' => '10',
799 'wrap' => 'OFF',
800 'softref' => 'TStemplate,email[subst],url[subst]'
801 ),
802 'defaultExtras' => 'fixed-font : enable-tab',
803 ),
804 'resources' => array(
805 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.resources',
806 'config' => array(
807 'type' => 'group',
808 'internal_type' => 'file',
809 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js,xml',
810 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
811 'uploadfolder' => 'uploads/tf',
812 'show_thumbs' => '1',
813 'size' => '7',
814 'maxitems' => '100',
815 'minitems' => '0'
816 )
817 ),
818 'nextLevel' => array(
819 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
820 'config' => array(
821 'type' => 'group',
822 'internal_type' => 'db',
823 'allowed' => 'sys_template',
824 'show_thumbs' => '1',
825 'size' => '1',
826 'maxitems' => '1',
827 'minitems' => '0',
828 'default' => '',
829 'wizards' => array(
830 'suggest' => array(
831 'type' => 'suggest',
832 ),
833 ),
834 )
835 ),
836 'include_static' => array(
837 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static',
838 'config' => array(
839 'type' => 'select',
840 'foreign_table' => 'static_template',
841 'foreign_table_where' => 'ORDER BY static_template.title DESC',
842 'size' => 10,
843 'maxitems' => 20,
844 'default' => '',
845 ),
846 ),
847 'include_static_file' => array(
848 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
849 'config' => array(
850 'type' => 'select',
851 'size' => 10,
852 'maxitems' => 100,
853 'items' => array(
854 ),
855 'softref' => 'ext_fileref'
856 )
857 ),
858 'basedOn' => array(
859 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
860 'config' => array(
861 'type' => 'group',
862 'internal_type' => 'db',
863 'allowed' => 'sys_template',
864 'show_thumbs' => '1',
865 'size' => '3',
866 'maxitems' => '50',
867 'autoSizeMax' => 10,
868 'minitems' => '0',
869 'default' => '',
870 'wizards' => array(
871 '_PADDING' => 4,
872 '_VERTICAL' => 1,
873 'suggest' => array(
874 'type' => 'suggest',
875 ),
876 'edit' => array(
877 'type' => 'popup',
878 'title' => 'Edit template',
879 'script' => 'wizard_edit.php',
880 'popup_onlyOpenIfSelected' => 1,
881 'icon' => 'edit2.gif',
882 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
883 ),
884 'add' => array(
885 'type' => 'script',
886 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
887 'icon' => 'add.gif',
888 'params' => array(
889 'table'=>'sys_template',
890 'pid' => '###CURRENT_PID###',
891 'setValue' => 'prepend'
892 ),
893 'script' => 'wizard_add.php',
894 )
895 )
896 )
897 ),
898 'includeStaticAfterBasedOn' => array(
899 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
900 'exclude' => 1,
901 'config' => array(
902 'type' => 'check',
903 'default' => '0'
904 )
905 ),
906 'config' => array(
907 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
908 'config' => array(
909 'type' => 'text',
910 'rows' => 10,
911 'cols' => 48,
912 'wizards' => array(
913 '_PADDING' => 4,
914 '0' => array(
915 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
916 'title' => 'TSref online',
917 'script' => 'wizard_tsconfig.php?mode=tsref',
918 'icon' => 'wizard_tsconfig.gif',
919 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
920 )
921 ),
922 'wrap' => 'OFF',
923 'softref' => 'TStemplate,email[subst],url[subst]'
924 ),
925 'defaultExtras' => 'fixed-font : enable-tab',
926 ),
927 'editorcfg' => array(
928 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.editorcfg',
929 'config' => array(
930 'type' => 'text',
931 'rows' => 8,
932 'cols' => 48,
933 'wrap' => 'OFF'
934 ),
935 'defaultExtras' => 'fixed-font : enable-tab',
936 ),
937 'description' => array(
938 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
939 'config' => array(
940 'type' => 'text',
941 'rows' => 5,
942 'cols' => 48
943 )
944 ),
945 'static_file_mode' => array(
946 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
947 'config' => array(
948 'type' => 'select',
949 'items' => array(
950 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.0', '0'),
951 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.1', '1'),
952 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.2', '2'),
953 ),
954 'default' => '0'
955 )
956 ),
957 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
958 't3ver_label' => array(
959 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
960 'config' => array(
961 'type' => 'input',
962 'size' => '30',
963 'max' => '255',
964 )
965 ),
966 ),
967 'types' => array(
968 '1' => array('showitem' => '
969 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
970 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel, editorcfg;;;;5-5-5,
971 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, include_static,includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
972 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
973 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
974 )
975 )
976 );
977
978
979
980
981
982 // ******************************************************************
983 // static_template
984 // ******************************************************************
985 $TCA['static_template'] = array(
986 'ctrl' => $TCA['static_template']['ctrl'],
987 'interface' => array(
988 'showRecordFieldList' => 'title,include_static,description'
989 ),
990 'columns' => array(
991 'title' => array(
992 'label' => 'Template title:',
993 'config' => array(
994 'type' => 'input',
995 'size' => '25',
996 'max' => '256',
997 'eval' => 'required'
998 )
999 ),
1000 'constants' => array(
1001 'label' => 'Constants:',
1002 'config' => array(
1003 'type' => 'text',
1004 'cols' => '48',
1005 'rows' => '10',
1006 'wrap' => 'OFF'
1007 ),
1008 'defaultExtras' => 'fixed-font : enable-tab',
1009 ),
1010 'include_static' => array(
1011 'label' => 'Include static:',
1012 'config' => array(
1013 'type' => 'select',
1014 'foreign_table' => 'static_template',
1015 'foreign_table_where' => 'ORDER BY static_template.title',
1016 'size' => 10,
1017 'maxitems' => 20,
1018 'default' => ''
1019 )
1020 ),
1021 'config' => array(
1022 'label' => 'Setup:',
1023 'config' => array(
1024 'type' => 'text',
1025 'rows' => 10,
1026 'cols' => 48,
1027 'wrap' => 'OFF'
1028 ),
1029 'defaultExtras' => 'fixed-font : enable-tab',
1030 ),
1031 'editorcfg' => array(
1032 'label' => 'Backend Editor Configuration:',
1033 'config' => array(
1034 'type' => 'text',
1035 'rows' => 4,
1036 'cols' => 48,
1037 'wrap' => 'OFF'
1038 ),
1039 'defaultExtras' => 'fixed-font : enable-tab',
1040 ),
1041 'description' => array(
1042 'label' => 'Description:',
1043 'config' => array(
1044 'type' => 'text',
1045 'rows' => 10,
1046 'cols' => 48
1047 )
1048 )
1049 ),
1050 'types' => array(
1051 '1' => array('showitem' => 'title;;;;2-2-2, constants;;;;3-3-3, config, include_static;;;;5-5-5, description;;;;5-5-5, editorcfg')
1052 )
1053 );
1054
1055
1056
1057 ?>