[BUGFIX] redirectTo field max-value 255 chars
[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' => '8',
256 'max' => '20',
257 'eval' => 'date',
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' => '8',
267 'max' => '20',
268 'eval' => 'date',
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',
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' => '8',
532 'max' => '20',
533 'eval' => 'date',
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' => '8',
543 'max' => '20',
544 'eval' => 'date',
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' => '5',
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 // not in menu
764 (string) t3lib_pageSelect::DOKTYPE_HIDE_IN_MENU => 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.metatags;metatags,
774 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
775 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
776 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
777 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
778 '),
779 // mount page
780 (string) t3lib_pageSelect::DOKTYPE_MOUNTPOINT => array(
781 'showitem' =>
782 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
783 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
784 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
785 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
786 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
787 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
788 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
789 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
790 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
791 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
792 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
793 '),
794 // spacer
795 (string) t3lib_pageSelect::DOKTYPE_SPACER => array(
796 'showitem' =>
797 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
798 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
799 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
800 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
801 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
802 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
803 '),
804 // sysfolder
805 (string) t3lib_pageSelect::DOKTYPE_SYSFOLDER => array(
806 'showitem' =>
807 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
808 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
809 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
810 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
811 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
812 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
813 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
814 '),
815 // trash
816 (string) t3lib_pageSelect::DOKTYPE_RECYCLER => array(
817 'showitem' =>
818 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
819 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
820 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
821 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
822 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
823 '),
824 ),
825 'palettes' => array(
826 '5' => array('showitem' => 'author,author_email', 'canNotCollapse' => true),
827 'standard' => array(
828 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, sys_language_uid',
829 'canNotCollapse' => 1,
830 ),
831 'shortcut' => array(
832 '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',
833 'canNotCollapse' => 1,
834 ),
835 'shortcutpage' => array(
836 'showitem' => 'shortcut;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_formlabel',
837 'canNotCollapse' => 1,
838 ),
839 'external' => array(
840 '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',
841 'canNotCollapse' => 1,
842 ),
843 'title' => array(
844 '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',
845 'canNotCollapse' => 1,
846 ),
847 'titleonly' => array(
848 'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel',
849 'canNotCollapse' => 1,
850 ),
851 'hiddenonly' => array(
852 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel',
853 'canNotCollapse' => 1,
854 ),
855 'access' => array(
856 'showitem' => 'starttime;LLL:EXT:cms/locallang_tca.xml:pages.starttime_formlabel, endtime;LLL:EXT:cms/locallang_tca.xml:pages.endtime_formlabel',
857 'canNotCollapse' => 1,
858 ),
859 'abstract' => array(
860 'showitem' => 'abstract;LLL:EXT:cms/locallang_tca.xml:pages.abstract_formlabel',
861 'canNotCollapse' => 1,
862 ),
863 'metatags' => array(
864 'showitem' => 'keywords;LLL:EXT:cms/locallang_tca.xml:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:cms/locallang_tca.xml:pages.description_formlabel',
865 'canNotCollapse' => 1,
866 ),
867 'editorial' => array(
868 'showitem' => 'author;LLL:EXT:cms/locallang_tca.xml:pages.author_formlabel, author_email;LLL:EXT:cms/locallang_tca.xml:pages.author_email_formlabel',
869 'canNotCollapse' => 1,
870 ),
871 'language' => array(
872 'showitem' => 'l18n_cfg;LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg_formlabel',
873 'canNotCollapse' => 1,
874 ),
875 'media' => array(
876 'showitem' => 'media;LLL:EXT:cms/locallang_tca.xml:pages.media_formlabel',
877 'canNotCollapse' => 1,
878 )
879 )
880 );
881
882
883
884 // ******************************************************************
885 // sys_template
886 // ******************************************************************
887 $TCA['sys_template'] = array(
888 'ctrl' => $TCA['sys_template']['ctrl'],
889 'interface' => array(
890 'showRecordFieldList' => 'title,clear,root,basedOn,nextLevel,resources,sitetitle,description,hidden,starttime,endtime'
891 ),
892 'columns' => array(
893 'title' => array(
894 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.title',
895 'config' => array(
896 'type' => 'input',
897 'size' => '25',
898 'max' => '256',
899 'eval' => 'required'
900 )
901 ),
902 'hidden' => array(
903 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
904 'exclude' => 1,
905 'config' => array(
906 'type' => 'check',
907 'default' => '0'
908 )
909 ),
910 'starttime' => array(
911 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
912 'exclude' => 1,
913 'config' => array(
914 'type' => 'input',
915 'size' => '8',
916 'max' => '20',
917 'eval' => 'date',
918 'default' => '0'
919 )
920 ),
921 'endtime' => array(
922 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
923 'exclude' => 1,
924 'config' => array(
925 'type' => 'input',
926 'size' => '8',
927 'max' => '20',
928 'eval' => 'date',
929 'default' => '0',
930 'range' => array(
931 'upper' => mktime(0,0,0,12,31,2020),
932 )
933 )
934 ),
935 'root' => array(
936 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.root',
937 'config' => array(
938 'type' => 'check'
939 )
940 ),
941 'clear' => array(
942 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.clear',
943 'config' => array(
944 'type' => 'check',
945 'items' => array(
946 array('Constants', ''),
947 array('Setup', '')
948 ),
949 'cols' => 2
950 )
951 ),
952 'sitetitle' => array(
953 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.sitetitle',
954 'config' => array(
955 'type' => 'input',
956 'size' => '25',
957 'max' => '256'
958 )
959 ),
960 'constants' => array(
961 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.constants',
962 'config' => array(
963 'type' => 'text',
964 'cols' => '48',
965 'rows' => '10',
966 'wrap' => 'OFF',
967 'softref' => 'TStemplate,email[subst],url[subst]'
968 ),
969 'defaultExtras' => 'fixed-font : enable-tab',
970 ),
971 'resources' => array(
972 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.resources',
973 'config' => array(
974 'type' => 'group',
975 'internal_type' => 'file',
976 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js,xml',
977 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
978 'uploadfolder' => 'uploads/tf',
979 'show_thumbs' => '1',
980 'size' => '7',
981 'maxitems' => '100',
982 'minitems' => '0'
983 )
984 ),
985 'nextLevel' => array(
986 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.nextLevel',
987 'config' => array(
988 'type' => 'group',
989 'internal_type' => 'db',
990 'allowed' => 'sys_template',
991 'show_thumbs' => '1',
992 'size' => '1',
993 'maxitems' => '1',
994 'minitems' => '0',
995 'default' => '',
996 'wizards' => array(
997 'suggest' => array(
998 'type' => 'suggest',
999 ),
1000 ),
1001 )
1002 ),
1003 'include_static_file' => array(
1004 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.include_static_file',
1005 'config' => array(
1006 'type' => 'select',
1007 'size' => 10,
1008 'maxitems' => 100,
1009 'items' => array(
1010 ),
1011 'softref' => 'ext_fileref'
1012 )
1013 ),
1014 'basedOn' => array(
1015 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn',
1016 'config' => array(
1017 'type' => 'group',
1018 'internal_type' => 'db',
1019 'allowed' => 'sys_template',
1020 'show_thumbs' => '1',
1021 'size' => '3',
1022 'maxitems' => '50',
1023 'autoSizeMax' => 10,
1024 'minitems' => '0',
1025 'default' => '',
1026 'wizards' => array(
1027 '_PADDING' => 4,
1028 '_VERTICAL' => 1,
1029 'suggest' => array(
1030 'type' => 'suggest',
1031 ),
1032 'edit' => array(
1033 'type' => 'popup',
1034 'title' => 'Edit template',
1035 'script' => 'wizard_edit.php',
1036 'popup_onlyOpenIfSelected' => 1,
1037 'icon' => 'edit2.gif',
1038 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
1039 ),
1040 'add' => array(
1041 'type' => 'script',
1042 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.basedOn_add',
1043 'icon' => 'add.gif',
1044 'params' => array(
1045 'table'=>'sys_template',
1046 'pid' => '###CURRENT_PID###',
1047 'setValue' => 'prepend'
1048 ),
1049 'script' => 'wizard_add.php',
1050 )
1051 )
1052 )
1053 ),
1054 'includeStaticAfterBasedOn' => array(
1055 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.includeStaticAfterBasedOn',
1056 'exclude' => 1,
1057 'config' => array(
1058 'type' => 'check',
1059 'default' => '0'
1060 )
1061 ),
1062 'config' => array(
1063 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.config',
1064 'config' => array(
1065 'type' => 'text',
1066 'rows' => 10,
1067 'cols' => 48,
1068 'wizards' => array(
1069 '_PADDING' => 4,
1070 '0' => array(
1071 # 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
1072 'title' => 'TSref online',
1073 'script' => 'wizard_tsconfig.php?mode=tsref',
1074 'icon' => 'wizard_tsconfig.gif',
1075 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
1076 )
1077 ),
1078 'wrap' => 'OFF',
1079 'softref' => 'TStemplate,email[subst],url[subst]'
1080 ),
1081 'defaultExtras' => 'fixed-font : enable-tab',
1082 ),
1083 'editorcfg' => array(
1084 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.editorcfg',
1085 'config' => array(
1086 'type' => 'text',
1087 'rows' => 8,
1088 'cols' => 48,
1089 'wrap' => 'OFF'
1090 ),
1091 'defaultExtras' => 'fixed-font : enable-tab',
1092 ),
1093 'description' => array(
1094 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.description',
1095 'config' => array(
1096 'type' => 'text',
1097 'rows' => 5,
1098 'cols' => 48
1099 )
1100 ),
1101 'static_file_mode' => array(
1102 'label' => 'LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode',
1103 'config' => array(
1104 'type' => 'select',
1105 'items' => array(
1106 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.0', '0'),
1107 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.1', '1'),
1108 array('LLL:EXT:cms/locallang_tca.xml:sys_template.static_file_mode.2', '2'),
1109 ),
1110 'default' => '0'
1111 )
1112 ),
1113 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
1114 't3ver_label' => array(
1115 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
1116 'config' => array(
1117 'type' => 'input',
1118 'size' => '30',
1119 'max' => '255',
1120 )
1121 ),
1122 ),
1123 'types' => array(
1124 '1' => array('showitem' => '
1125 hidden,title;;1;;2-2-2, sitetitle, constants;;;;3-3-3, config, description;;;;4-4-4,
1126 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.options, clear, root, nextLevel, editorcfg;;;;5-5-5,
1127 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.include, includeStaticAfterBasedOn,6-6-6, include_static_file, basedOn, static_file_mode,
1128 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.files, resources,
1129 --div--;LLL:EXT:cms/locallang_tca.xml:sys_template.tabs.access, starttime, endtime'
1130 )
1131 )
1132 );
1133
1134 // ******************************************************************
1135 // backend_layout
1136 // ******************************************************************
1137 $TCA['backend_layout'] = array(
1138 'ctrl' => $TCA['backend_layout']['ctrl'],
1139 'interface' => array(
1140 'showRecordFieldList' => 'title,config,description,hidden,icon'
1141 ),
1142 'columns' => array(
1143 'title' => array(
1144 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.title',
1145 'config' => array(
1146 'type' => 'input',
1147 'size' => '25',
1148 'max' => '256',
1149 'eval' => 'required'
1150 )
1151 ),
1152 'description' => array(
1153 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.description',
1154 'config' => array(
1155 'type' => 'text',
1156 'rows' => '5',
1157 'cols' => '25',
1158 )
1159 ),
1160 'config' => array(
1161 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.config',
1162 'config' => array(
1163 'type' => 'text',
1164 'rows' => '5',
1165 'cols' => '25',
1166 'wizards' => Array(
1167 '_PADDING' => 4,
1168 0 => Array(
1169 'title' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.wizard',
1170 'type' => 'popup',
1171 'icon' => t3lib_extMgm::extRelPath('cms').'layout/wizard_backend_layout.png',
1172 'script' => t3lib_extMgm::extRelPath('cms').'layout/wizard_backend_layout.php',
1173 'JSopenParams' => 'height=800,width=800,status=0,menubar=0,scrollbars=0',
1174 ),
1175 ),
1176 )
1177 ),
1178 'hidden' => array(
1179 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
1180 'exclude' => 1,
1181 'config' => array(
1182 'type' => 'check',
1183 'default' => '0'
1184 )
1185 ),
1186 'icon' => array(
1187 'label' => 'LLL:EXT:cms/locallang_tca.xml:backend_layout.icon',
1188 'exclude' => 1,
1189 'config' => array(
1190 'type' => 'group',
1191 'internal_type' => 'file',
1192 'allowed' => 'jpg,gif,png',
1193 'uploadfolder' => 'uploads/media',
1194 'show_thumbs' => 1,
1195 'size' => 1,
1196 'maxitems' => 1
1197 )
1198 ),
1199 ),
1200 'types' => array(
1201 '1' => array('showitem' => 'hidden,title;;1;;2-2-2, icon, description, config')
1202 )
1203 );
1204
1205
1206 ?>