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