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