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