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