[TASK] Move field "module" to "Behaviour"
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_pages.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5
6 $TCA['pages'] = array(
7 'ctrl' => $TCA['pages']['ctrl'],
8 'interface' => array(
9 'showRecordFieldList' => 'doktype,title,alias,hidden,starttime,endtime,fe_group,url,target,no_cache,shortcut,keywords,description,abstract,newUntil,lastUpdated,cache_timeout,cache_tags,backend_layout,backend_layout_next_level',
10 'maxDBListItems' => 30,
11 'maxSingleDBListItems' => 50,
12 ),
13 'columns' => array(
14 'doktype' => array(
15 'exclude' => 1,
16 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
17 'config' => array(
18 'type' => 'select',
19 'items' => array(
20 array(
21 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.page',
22 '--div--',
23 ),
24 array(
25 'LLL:EXT:lang/locallang_tca.php:doktype.I.0',
26 (string) t3lib_pageSelect::DOKTYPE_DEFAULT,
27 'i/pages.gif',
28 ),
29 array(
30 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.4',
31 (string) t3lib_pageSelect::DOKTYPE_BE_USER_SECTION,
32 'i/be_users_section.gif',
33 ),
34 array(
35 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.link',
36 '--div--',
37 ),
38 array(
39 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.2',
40 (string) t3lib_pageSelect::DOKTYPE_SHORTCUT,
41 'i/pages_shortcut.gif',
42 ),
43 array(
44 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.5',
45 (string) t3lib_pageSelect::DOKTYPE_MOUNTPOINT,
46 'i/pages_mountpoint.gif',
47 ),
48 array(
49 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.8',
50 (string) t3lib_pageSelect::DOKTYPE_LINK,
51 'i/pages_link.gif',
52 ),
53 array(
54 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.div.special',
55 '--div--',
56 ),
57 array(
58 'LLL:EXT:lang/locallang_tca.xml:doktype.I.folder',
59 (string) t3lib_pageSelect::DOKTYPE_SYSFOLDER,
60 'i/sysf.gif',
61 ),
62 array(
63 'LLL:EXT:lang/locallang_tca.xml:doktype.I.2',
64 (string) t3lib_pageSelect::DOKTYPE_RECYCLER,
65 'i/recycler.gif',
66 ),
67 array(
68 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.7',
69 (string) t3lib_pageSelect::DOKTYPE_SPACER,
70 'i/spacer_icon.gif',
71 ),
72 ),
73 'default' => (string) t3lib_pageSelect::DOKTYPE_DEFAULT,
74 'iconsInOptionTags' => 1,
75 'noIconsBelowSelect' => 1,
76 ),
77 ),
78 'title' => array(
79 'label' => 'LLL:EXT:lang/locallang_tca.php:title',
80 'config' => array(
81 'type' => 'input',
82 'size' => '50',
83 'max' => '255',
84 'eval' => 'trim,required',
85 ),
86 ),
87 'TSconfig' => array(
88 'exclude' => 1,
89 'label' => 'TSconfig:',
90 'config' => array(
91 'type' => 'text',
92 'cols' => '40',
93 'rows' => '5',
94 'wizards' => array(
95 '_PADDING' => 4,
96 '0' => array(
97 'type' => t3lib_extMgm::isLoaded('tsconfig_help') ? 'popup' : '',
98 'title' => 'TSconfig QuickReference',
99 'script' => 'wizard_tsconfig.php?mode=page',
100 'icon' => 'wizard_tsconfig.gif',
101 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
102 ),
103 ),
104 'softref' => 'TSconfig',
105 ),
106 'defaultExtras' => 'fixed-font : enable-tab',
107 ),
108 'php_tree_stop' => array(
109 'exclude' => 1,
110 'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
111 'config' => array(
112 'type' => 'check',
113 'items' => array(
114 '1' => array(
115 '0' => 'LLL:EXT:lang/locallang_core.xml:labels.enabled',
116 ),
117 ),
118 ),
119 ),
120 'storage_pid' => array(
121 'exclude' => 1,
122 'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
123 'config' => array(
124 'type' => 'group',
125 'internal_type' => 'db',
126 'allowed' => 'pages',
127 'size' => '1',
128 'maxitems' => '1',
129 'minitems' => '0',
130 'show_thumbs' => '1',
131 'wizards' => array(
132 'suggest' => array(
133 'type' => 'suggest',
134 ),
135 ),
136 ),
137 ),
138 'tx_impexp_origuid' => array('config' => array('type' => 'passthrough')),
139 't3ver_label' => array(
140 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
141 'config' => array(
142 'type' => 'input',
143 'size' => '23',
144 'max' => '255',
145 ),
146 ),
147 'editlock' => array(
148 'exclude' => 1,
149 'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
150 'config' => array(
151 'type' => 'check',
152 'items' => array(
153 '1' => array(
154 '0' => 'LLL:EXT:lang/locallang_core.xml:labels.enabled',
155 ),
156 ),
157 ),
158 ),
159 'hidden' => array(
160 'exclude' => 1,
161 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden',
162 'config' => array(
163 'type' => 'check',
164 'default' => '1',
165 'items' => array(
166 '1' => array(
167 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.hidden_checkbox_1_formlabel',
168 ),
169 ),
170 ),
171 ),
172 'starttime' => array(
173 'exclude' => 1,
174 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
175 'config' => array(
176 'type' => 'input',
177 'size' => '13',
178 'max' => '20',
179 'eval' => 'datetime',
180 'default' => '0',
181 ),
182 ),
183 'endtime' => array(
184 'exclude' => 1,
185 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
186 'config' => array(
187 'type' => 'input',
188 'size' => '13',
189 'max' => '20',
190 'eval' => 'datetime',
191 'default' => '0',
192 'range' => array(
193 'upper' => mktime(0, 0, 0, 12, 31, 2020),
194 ),
195 ),
196 ),
197 'layout' => array(
198 'exclude' => 1,
199 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.layout',
200 'config' => array(
201 'type' => 'select',
202 'items' => array(
203 array(
204 'LLL:EXT:lang/locallang_general.xml:LGL.default_value',
205 '0',
206 ),
207 array(
208 'LLL:EXT:cms/locallang_tca.xml:pages.layout.I.1',
209 '1',
210 ),
211 array(
212 'LLL:EXT:cms/locallang_tca.xml:pages.layout.I.2',
213 '2',
214 ),
215 array(
216 'LLL:EXT:cms/locallang_tca.xml:pages.layout.I.3',
217 '3',
218 ),
219 ),
220 'default' => '0',
221 ),
222 ),
223 'url_scheme' => array(
224 'exclude' => 1,
225 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url_scheme',
226 'config' => array(
227 'type' => 'select',
228 'items' => array(
229 array(
230 'LLL:EXT:lang/locallang_general.xml:LGL.default_value',
231 0,
232 ),
233 array(
234 'LLL:EXT:cms/locallang_tca.xml:pages.url_scheme.http',
235 1,
236 ),
237 array(
238 'LLL:EXT:cms/locallang_tca.xml:pages.url_scheme.https',
239 2,
240 ),
241 ),
242 'default' => 0,
243 ),
244 ),
245 'fe_group' => array(
246 'exclude' => 1,
247 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
248 'config' => array(
249 'type' => 'select',
250 'size' => 7,
251 'maxitems' => 20,
252 'items' => array(
253 array(
254 'LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login',
255 -1,
256 ),
257 array(
258 'LLL:EXT:lang/locallang_general.xml:LGL.any_login',
259 -2,
260 ),
261 array(
262 'LLL:EXT:lang/locallang_general.xml:LGL.usergroups',
263 '--div--',
264 ),
265 ),
266 'exclusiveKeys' => '-1,-2',
267 'foreign_table' => 'fe_groups',
268 'foreign_table_where' => 'ORDER BY fe_groups.title',
269 ),
270 ),
271 'extendToSubpages' => array(
272 'exclude' => 1,
273 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.extendToSubpages',
274 'config' => array(
275 'type' => 'check',
276 'items' => array(
277 '1' => array(
278 '0' => 'LLL:EXT:lang/locallang_core.xml:labels.enabled',
279 ),
280 ),
281 ),
282 ),
283 'nav_title' => array(
284 'exclude' => 1,
285 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_title',
286 'config' => array(
287 'type' => 'input',
288 'size' => '50',
289 'max' => '255',
290 'eval' => 'trim',
291 ),
292 ),
293 'nav_hide' => array(
294 'exclude' => 1,
295 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_hide',
296 'config' => array(
297 'type' => 'check',
298 'items' => array(
299 '1' => array(
300 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.nav_hide_checkbox_1_formlabel',
301 ),
302 ),
303 ),
304 ),
305 'subtitle' => array(
306 'exclude' => 1,
307 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.subtitle',
308 'config' => array(
309 'type' => 'input',
310 'size' => '50',
311 'max' => '255',
312 'eval' => '',
313 ),
314 ),
315 'target' => array(
316 'exclude' => 1,
317 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.target',
318 'config' => array(
319 'type' => 'input',
320 'size' => '50',
321 'max' => '80',
322 'eval' => 'trim',
323 ),
324 ),
325 'alias' => array(
326 'displayCond' => 'VERSION:IS:false',
327 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.alias',
328 'config' => array(
329 'type' => 'input',
330 'size' => '50',
331 'max' => '32',
332 'eval' => 'nospace,alphanum_x,lower,unique',
333 'softref' => 'notify',
334 ),
335 ),
336 'url' => array(
337 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.url',
338 'config' => array(
339 'type' => 'input',
340 'size' => '23',
341 'max' => '255',
342 'eval' => 'trim,required',
343 'softref' => 'url',
344 ),
345 ),
346 'urltype' => array(
347 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.type',
348 'config' => array(
349 'type' => 'select',
350 'items' => array(
351 array(
352 'LLL:EXT:lang/locallang_core.xml:labels.automatic',
353 '0',
354 ),
355 array(
356 'http://',
357 '1',
358 ),
359 array(
360 'https://',
361 '4',
362 ),
363 array(
364 'ftp://',
365 '2',
366 ),
367 array(
368 'mailto:',
369 '3',
370 ),
371 ),
372 'default' => '1',
373 ),
374 ),
375 'lastUpdated' => array(
376 'exclude' => 1,
377 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.lastUpdated',
378 'config' => array(
379 'type' => 'input',
380 'size' => '13',
381 'max' => '20',
382 'eval' => 'datetime',
383 'default' => '0',
384 ),
385 ),
386 'newUntil' => array(
387 'exclude' => 1,
388 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.newUntil',
389 'config' => array(
390 'type' => 'input',
391 'size' => '13',
392 'max' => '20',
393 'eval' => 'date',
394 'default' => '0',
395 ),
396 ),
397 'cache_timeout' => array(
398 'exclude' => 1,
399 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout',
400 'config' => array(
401 'type' => 'select',
402 'items' => array(
403 array(
404 'LLL:EXT:lang/locallang_general.xml:LGL.default_value',
405 0,
406 ),
407 array(
408 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.1',
409 60,
410 ),
411 array(
412 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.2',
413 300,
414 ),
415 array(
416 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.3',
417 900,
418 ),
419 array(
420 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.4',
421 1800,
422 ),
423 array(
424 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.5',
425 3600,
426 ),
427 array(
428 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.6',
429 14400,
430 ),
431 array(
432 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.7',
433 86400,
434 ),
435 array(
436 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.8',
437 172800,
438 ),
439 array(
440 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.9',
441 604800,
442 ),
443 array(
444 'LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout.I.10',
445 2678400,
446 ),
447 ),
448 'default' => '0',
449 ),
450 ),
451 'cache_tags' => array(
452 'exclude' => 1,
453 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.cache_tags',
454 'config' => array(
455 'type' => 'input',
456 'size' => '30',
457 'max' => '255',
458 'eval' => '',
459 ),
460 ),
461 'no_cache' => array(
462 'exclude' => 1,
463 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache',
464 'config' => array(
465 'type' => 'check',
466 'items' => array(
467 '1' => array(
468 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache_checkbox_1_formlabel',
469 ),
470 ),
471 ),
472 ),
473 'no_search' => array(
474 'exclude' => 1,
475 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search',
476 'config' => array(
477 'type' => 'check',
478 'items' => array(
479 '1' => array(
480 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search_checkbox_1_formlabel',
481 ),
482 ),
483 ),
484 ),
485 'shortcut' => array(
486 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
487 'config' => array(
488 'type' => 'group',
489 'internal_type' => 'db',
490 'allowed' => 'pages',
491 'size' => '1',
492 'maxitems' => '1',
493 'minitems' => '0',
494 'show_thumbs' => '1',
495 'wizards' => array(
496 'suggest' => array(
497 'type' => 'suggest',
498 ),
499 ),
500 ),
501 ),
502 'shortcut_mode' => array(
503 'exclude' => 1,
504 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
505 'config' => array(
506 'type' => 'select',
507 'items' => array(
508 array(
509 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.0',
510 t3lib_pageSelect::SHORTCUT_MODE_NONE,
511 ),
512 array(
513 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.1',
514 t3lib_pageSelect::SHORTCUT_MODE_FIRST_SUBPAGE,
515 ),
516 array(
517 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.2',
518 t3lib_pageSelect::SHORTCUT_MODE_RANDOM_SUBPAGE,
519 ),
520 array(
521 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.3',
522 t3lib_pageSelect::SHORTCUT_MODE_PARENT_PAGE,
523 ),
524 ),
525 'default' => '0',
526 ),
527 ),
528 'content_from_pid' => array(
529 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid',
530 'config' => array(
531 'type' => 'group',
532 'internal_type' => 'db',
533 'allowed' => 'pages',
534 'size' => '1',
535 'maxitems' => '1',
536 'minitems' => '0',
537 'show_thumbs' => '1',
538 'wizards' => array(
539 'suggest' => array(
540 'type' => 'suggest',
541 ),
542 ),
543 ),
544 ),
545 'mount_pid' => array(
546 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid',
547 'config' => array(
548 'type' => 'group',
549 'internal_type' => 'db',
550 'allowed' => 'pages',
551 'size' => '1',
552 'maxitems' => '1',
553 'minitems' => '0',
554 'show_thumbs' => '1',
555 'wizards' => array(
556 'suggest' => array(
557 'type' => 'suggest',
558 ),
559 ),
560 ),
561 ),
562 'keywords' => array(
563 'exclude' => 1,
564 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.keywords',
565 'config' => array(
566 'type' => 'text',
567 'cols' => '40',
568 'rows' => '3',
569 ),
570 ),
571 'description' => array(
572 'exclude' => 1,
573 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
574 'config' => array(
575 'type' => 'text',
576 'cols' => '40',
577 'rows' => '3',
578 ),
579 ),
580 'abstract' => array(
581 'exclude' => 1,
582 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.abstract',
583 'config' => array(
584 'type' => 'text',
585 'cols' => '40',
586 'rows' => '3',
587 ),
588 ),
589 'author' => array(
590 'exclude' => 1,
591 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.author',
592 'config' => array(
593 'type' => 'input',
594 'size' => '23',
595 'eval' => 'trim',
596 'max' => '80',
597 ),
598 ),
599 'author_email' => array(
600 'exclude' => 1,
601 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
602 'config' => array(
603 'type' => 'input',
604 'size' => '23',
605 'eval' => 'trim',
606 'max' => '80',
607 'softref' => 'email[subst]',
608 ),
609 ),
610 'media' => array(
611 'exclude' => 1,
612 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.media',
613 'config' => t3lib_extMgm::getFileFieldTCAConfig('media'),
614 ),
615 'is_siteroot' => array(
616 'exclude' => 1,
617 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.is_siteroot',
618 'config' => array(
619 'type' => 'check',
620 'items' => array(
621 '1' => array(
622 '0' => 'LLL:EXT:lang/locallang_core.xml:labels.enabled'
623 ),
624 ),
625 ),
626 ),
627 'mount_pid_ol' => array(
628 'exclude' => 1,
629 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol',
630 'config' => array(
631 'type' => 'radio',
632 'items' => array(
633 array(
634 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol.I.0',0
635 ),
636 array(
637 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol.I.1',1
638 ),
639 ),
640 ),
641 ),
642 'module' => array(
643 'exclude' => 1,
644 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.module',
645 'config' => array(
646 'type' => 'select',
647 'items' => array(
648 array(
649 '',
650 '',
651 '',
652 ),
653 array(
654 'LLL:EXT:cms/locallang_tca.xml:pages.module.I.4',
655 'fe_users',
656 'i/fe_users.gif',
657 ),
658 ),
659 'default' => '',
660 'iconsInOptionTags' => 1,
661 'noIconsBelowSelect' => 1,
662 ),
663 ),
664 'fe_login_mode' => array(
665 'exclude' => 1,
666 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode',
667 'config' => array(
668 'type' => 'select',
669 'items' => array(
670 array(
671 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enable',
672 0,
673 ),
674 array(
675 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableAll',
676 1,
677 ),
678 array(
679 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableGroups',
680 3,
681 ),
682 array(
683 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enableAgain',
684 2,
685 ),
686 ),
687 ),
688 ),
689 'l18n_cfg' => array(
690 'exclude' => 1,
691 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg',
692 'config' => array(
693 'type' => 'check',
694 'items' => array(
695 array(
696 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.1',
697 '',
698 ),
699 array(
700 $GLOBALS['TYPO3_CONF_VARS']['FE']['hidePagesIfNotTranslatedByDefault'] ?
701 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2a' :
702 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2',
703 '',
704 ),
705 ),
706 ),
707 ),
708 'backend_layout' => array(
709 'exclude' => 1,
710 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.backend_layout_formlabel',
711 'config' => array(
712 'type' => 'select',
713 'foreign_table' => 'backend_layout',
714 'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) OR ( ###PAGE_TSCONFIG_ID### = 0 AND backend_layout.pid = ###THIS_UID### ) ) AND backend_layout.hidden = 0',
715 'items' => array(
716 array('', 0),
717 array('LLL:EXT:cms/locallang_tca.xml:pages.backend_layout.none', -1)
718 ),
719 'selicon_cols' => 5,
720 'size' => 1,
721 'maxitems' => 1,
722 'default' => ''
723 )
724 ),
725 'backend_layout_next_level' => array(
726 'exclude' => 1,
727 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.backend_layout_next_level_formlabel',
728 'config' => array(
729 'type' => 'select',
730 'foreign_table' => 'backend_layout',
731 'foreign_table_where' => 'AND ( ( ###PAGE_TSCONFIG_ID### = 0 AND ###STORAGE_PID### = 0 ) OR ( backend_layout.pid = ###PAGE_TSCONFIG_ID### OR backend_layout.pid = ###STORAGE_PID### ) OR ( ###PAGE_TSCONFIG_ID### = 0 AND backend_layout.pid = ###THIS_UID### ) ) AND backend_layout.hidden = 0',
732 'items' => array(
733 array('', 0),
734 array('LLL:EXT:cms/locallang_tca.xml:pages.backend_layout.none', -1)
735 ),
736 'selicon_cols' => 5,
737 'size' => 1,
738 'maxitems' => 1,
739 'default' => ''
740 )
741 )
742 ),
743 'types' => array(
744 // normal
745 (string) t3lib_pageSelect::DOKTYPE_DEFAULT => array(
746 'showitem' =>
747 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
748 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
749 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
750 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
751 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
752 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
753 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
754 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.metatags;metatags,
755 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
756 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
757 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
758 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.replace;replace,
759 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
760 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
761 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.caching;caching,
762 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
763 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
764 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.module;module,
765 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
766 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
767 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
768 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
769 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
770 '),
771 // external URL
772 (string) t3lib_pageSelect::DOKTYPE_LINK => array(
773 'showitem' =>
774 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.external;external,
775 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
776 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
777 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
778 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
779 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
780 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
781 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
782 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
783 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
784 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
785 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
786 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
787 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
788 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
789 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
790 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
791 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
792 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
793 '),
794 // shortcut
795 (string) t3lib_pageSelect::DOKTYPE_SHORTCUT => array(
796 'showitem' =>
797 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcut;shortcut,
798 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcutpage;shortcutpage,
799 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
800 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
801 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
802 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
803 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
804 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
805 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
806 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
807 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
808 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
809 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
810 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
811 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
812 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
813 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
814 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
815 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
816 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
817 '),
818 // mount page
819 (string) t3lib_pageSelect::DOKTYPE_MOUNTPOINT => array(
820 'showitem' =>
821 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.mountpoint;mountpoint,
822 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.mountpage;mountpage,
823 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
824 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
825 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
826 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
827 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
828 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
829 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
830 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
831 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
832 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
833 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
834 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
835 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
836 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
837 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
838 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
839 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
840 '),
841 // spacer
842 (string) t3lib_pageSelect::DOKTYPE_SPACER => array(
843 'showitem' =>
844 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
845 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
846 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
847 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
848 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
849 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
850 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;adminsonly,
851 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
852 '),
853 // Folder
854 (string) t3lib_pageSelect::DOKTYPE_SYSFOLDER => array(
855 'showitem' =>
856 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
857 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
858 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
859 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
860 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
861 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;adminsonly,
862 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.module;module,
863 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
864 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
865 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
866 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
867 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
868 '),
869 // trash
870 (string) t3lib_pageSelect::DOKTYPE_RECYCLER => array(
871 'showitem' =>
872 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
873 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
874 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
875 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
876 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
877 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;adminsonly,
878 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
879 '),
880 ),
881 'palettes' => array(
882 '1' => array(
883 'showitem' => 'starttime, endtime, extendToSubpages',
884 ),
885 '2' => array(
886 'showitem' => 'layout, lastUpdated, newUntil, no_search',
887 ),
888 '3' => array(
889 'showitem' => 'alias, target, no_cache, cache_timeout, cache_tags, url_scheme',
890 ),
891 '5' => array(
892 'showitem' => 'author, author_email', 'canNotCollapse' => 1,
893 ),
894 '6' => array(
895 'showitem' => 'php_tree_stop, editlock',
896 ),
897 '7' => array(
898 'showitem' => 'is_siteroot',
899 ),
900 '8' => array(
901 'showitem' => 'backend_layout_next_level'
902 ),
903 'standard' => array(
904 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel',
905 'canNotCollapse' => 1,
906 ),
907 'shortcut' => array(
908 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, shortcut_mode;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode_formlabel',
909 'canNotCollapse' => 1,
910 ),
911 'shortcutpage' => array(
912 'showitem' => 'shortcut;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_formlabel',
913 'canNotCollapse' => 1,
914 ),
915 'mountpoint' => array(
916 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, mount_pid_ol;LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_ol_formlabel',
917 'canNotCollapse' => 1,
918 ),
919 'mountpage' => array(
920 'showitem' => 'mount_pid;LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_formlabel',
921 'canNotCollapse' => 1,
922 ),
923 'external' => array(
924 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, urltype;LLL:EXT:cms/locallang_tca.xml:pages.urltype_formlabel, url;LLL:EXT:cms/locallang_tca.xml:pages.url_formlabel',
925 'canNotCollapse' => 1,
926 ),
927 'title' => array(
928 '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',
929 'canNotCollapse' => 1,
930 ),
931 'titleonly' => array(
932 'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel',
933 'canNotCollapse' => 1,
934 ),
935 'visibility' => array(
936 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel, nav_hide;LLL:EXT:cms/locallang_tca.xml:pages.nav_hide_formlabel',
937 'canNotCollapse' => 1,
938 ),
939 'hiddenonly' => array(
940 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel',
941 'canNotCollapse' => 1,
942 ),
943 'access' => array(
944 'showitem' => 'starttime;LLL:EXT:cms/locallang_tca.xml:pages.starttime_formlabel, endtime;LLL:EXT:cms/locallang_tca.xml:pages.endtime_formlabel, extendToSubpages;LLL:EXT:cms/locallang_tca.xml:pages.extendToSubpages_formlabel, --linebreak--, fe_group;LLL:EXT:cms/locallang_tca.xml:pages.fe_group_formlabel, --linebreak--, fe_login_mode;LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode_formlabel',
945 'canNotCollapse' => 1,
946 ),
947 'abstract' => array(
948 'showitem' => 'abstract;LLL:EXT:cms/locallang_tca.xml:pages.abstract_formlabel',
949 'canNotCollapse' => 1,
950 ),
951 'metatags' => array(
952 'showitem' => 'keywords;LLL:EXT:cms/locallang_tca.xml:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:cms/locallang_tca.xml:pages.description_formlabel',
953 'canNotCollapse' => 1,
954 ),
955 'editorial' => array(
956 'showitem' => 'author;LLL:EXT:cms/locallang_tca.xml:pages.author_formlabel, author_email;LLL:EXT:cms/locallang_tca.xml:pages.author_email_formlabel, lastUpdated;LLL:EXT:cms/locallang_tca.xml:pages.lastUpdated_formlabel',
957 'canNotCollapse' => 1,
958 ),
959 'layout' => array(
960 'showitem' => 'layout;LLL:EXT:cms/locallang_tca.xml:pages.layout_formlabel, newUntil;LLL:EXT:cms/locallang_tca.xml:pages.newUntil_formlabel, --linebreak--, backend_layout;LLL:EXT:cms/locallang_tca.xml:pages.backend_layout_formlabel, backend_layout_next_level;LLL:EXT:cms/locallang_tca.xml:pages.backend_layout_next_level_formlabel',
961 'canNotCollapse' => 1,
962 ),
963 'module' => array(
964 'showitem' => 'module;LLL:EXT:cms/locallang_tca.xml:pages.module_formlabel',
965 'canNotCollapse' => 1,
966 ),
967 'replace' => array(
968 'showitem' => 'content_from_pid;LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid_formlabel',
969 'canNotCollapse' => 1,
970 ),
971 'links' => array(
972 'showitem' => 'alias;LLL:EXT:cms/locallang_tca.xml:pages.alias_formlabel, --linebreak--, target;LLL:EXT:cms/locallang_tca.xml:pages.target_formlabel, --linebreak--, url_scheme;LLL:EXT:cms/locallang_tca.xml:pages.url_scheme_formlabel',
973 'canNotCollapse' => 1,
974 ),
975 'caching' => array(
976 'showitem' => 'cache_timeout;LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout_formlabel, cache_tags, no_cache;LLL:EXT:cms/locallang_tca.xml:pages.no_cache_formlabel',
977 'canNotCollapse' => 1,
978 ),
979 'language' => array(
980 'showitem' => 'l18n_cfg;LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg_formlabel',
981 'canNotCollapse' => 1,
982 ),
983 'miscellaneous' => array(
984 'showitem' => 'is_siteroot;LLL:EXT:cms/locallang_tca.xml:pages.is_siteroot_formlabel, no_search;LLL:EXT:cms/locallang_tca.xml:pages.no_search_formlabel, editlock;LLL:EXT:cms/locallang_tca.xml:pages.editlock_formlabel, php_tree_stop;LLL:EXT:cms/locallang_tca.xml:pages.php_tree_stop_formlabel',
985 'canNotCollapse' => 1,
986 ),
987 'adminsonly' => array(
988 'showitem' => 'editlock;LLL:EXT:cms/locallang_tca.xml:pages.editlock_formlabel',
989 'canNotCollapse' => 1,
990 ),
991 'media' => array(
992 'showitem' => 'media;LLL:EXT:cms/locallang_tca.xml:pages.media_formlabel',
993 'canNotCollapse' => 1,
994 ),
995 'storage' => array(
996 'showitem' => 'storage_pid;LLL:EXT:cms/locallang_tca.xml:pages.storage_pid_formlabel',
997 'canNotCollapse' => 1,
998 ),
999 'config' => array(
1000 'showitem' => 'TSconfig;LLL:EXT:cms/locallang_tca.xml:pages.TSconfig_formlabel',
1001 'canNotCollapse' => 1,
1002 )
1003 )
1004 );
1005
1006
1007 // if the compat version is less than 4.2, pagetype 2 ("Advanced")
1008 // and pagetype 5 ("Not in menu") are added to TCA.
1009 if (!t3lib_div::compat_version('4.2')) {
1010 // Merging in CMS doktypes
1011 array_splice(
1012 $TCA['pages']['columns']['doktype']['config']['items'],
1013 2,
1014 0,
1015 array(
1016 array(
1017 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.0',
1018 '2',
1019 'i/pages.gif',
1020 ),
1021 array(
1022 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.3',
1023 '5',
1024 'i/pages_notinmenu.gif',
1025 ),
1026 )
1027 );
1028 // setting the doktype 1 ("Standard") to show less fields
1029 $TCA['pages']['types'][1] = array(
1030 // standard
1031 'showitem' =>
1032 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
1033 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
1034 starttime, endtime, fe_group, extendToSubpages,
1035 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
1036 TSconfig;;6;nowrap;4-4-4, storage_pid;;7, l18n_cfg, backend_layout;;8,
1037 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
1038 ');
1039 // adding doktype 2 ("Advanced")
1040 $TCA['pages']['types'][2] = array(
1041 'showitem' =>
1042 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
1043 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
1044 abstract;;5;;3-3-3, keywords, description,
1045 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
1046 media,
1047 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
1048 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
1049 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
1050 TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid, backend_layout;;8,
1051 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
1052 ');
1053 }
1054
1055
1056 // keep old code (pre-FAL) for installations that haven't upgraded yet. please remove this code in TYPO3 7.0
1057 // @deprecated since TYPO3 6.0, please remove in TYPO3 7.0
1058 // existing installation - and files are merged, nothing to do
1059 if ((!isset($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['Tx_Install_Updates_File_TceformsUpdateWizard']) || !t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['Tx_Install_Updates_File_TceformsUpdateWizard'], 'pages:media')) && !t3lib_div::compat_version('6.0')) {
1060 t3lib_div::deprecationLog('This installation hasn\'t been migrated to FAL for the field $TCA[pages][columns][media] yet. Please do so before TYPO3 v7.');
1061 // existing installation and no upgrade wizard was executed - and files haven't been merged: use the old code
1062 $TCA['pages']['columns']['media']['config'] = array(
1063 'type' => 'group',
1064 'internal_type' => 'file',
1065 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . ',html,htm,ttf,txt,css',
1066 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
1067 'uploadfolder' => 'uploads/media',
1068 'show_thumbs' => '1',
1069 'size' => '3',
1070 'maxitems' => '100',
1071 'minitems' => '0',
1072
1073 );
1074 }
1075
1076 ?>