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