[TASK] Remove deprecated parts marked for removal
[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,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 'no_cache' => array(
452 'exclude' => 1,
453 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache',
454 'config' => array(
455 'type' => 'check',
456 'items' => array(
457 '1' => array(
458 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_cache_checkbox_1_formlabel',
459 ),
460 ),
461 ),
462 ),
463 'no_search' => array(
464 'exclude' => 1,
465 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search',
466 'config' => array(
467 'type' => 'check',
468 'items' => array(
469 '1' => array(
470 '0' => 'LLL:EXT:cms/locallang_tca.xml:pages.no_search_checkbox_1_formlabel',
471 ),
472 ),
473 ),
474 ),
475 'shortcut' => array(
476 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.shortcut_page',
477 'config' => array(
478 'type' => 'group',
479 'internal_type' => 'db',
480 'allowed' => 'pages',
481 'size' => '1',
482 'maxitems' => '1',
483 'minitems' => '0',
484 'show_thumbs' => '1',
485 'wizards' => array(
486 'suggest' => array(
487 'type' => 'suggest',
488 ),
489 ),
490 ),
491 ),
492 'shortcut_mode' => array(
493 'exclude' => 1,
494 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode',
495 'config' => array(
496 'type' => 'select',
497 'items' => array(
498 array(
499 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.0',
500 t3lib_pageSelect::SHORTCUT_MODE_NONE,
501 ),
502 array(
503 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.1',
504 t3lib_pageSelect::SHORTCUT_MODE_FIRST_SUBPAGE,
505 ),
506 array(
507 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.2',
508 t3lib_pageSelect::SHORTCUT_MODE_RANDOM_SUBPAGE,
509 ),
510 array(
511 'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.3',
512 t3lib_pageSelect::SHORTCUT_MODE_PARENT_PAGE,
513 ),
514 ),
515 'default' => '0',
516 ),
517 ),
518 'content_from_pid' => array(
519 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid',
520 'config' => array(
521 'type' => 'group',
522 'internal_type' => 'db',
523 'allowed' => 'pages',
524 'size' => '1',
525 'maxitems' => '1',
526 'minitems' => '0',
527 'show_thumbs' => '1',
528 'wizards' => array(
529 'suggest' => array(
530 'type' => 'suggest',
531 ),
532 ),
533 ),
534 ),
535 'mount_pid' => array(
536 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.mount_pid',
537 'config' => array(
538 'type' => 'group',
539 'internal_type' => 'db',
540 'allowed' => 'pages',
541 'size' => '1',
542 'maxitems' => '1',
543 'minitems' => '0',
544 'show_thumbs' => '1',
545 'wizards' => array(
546 'suggest' => array(
547 'type' => 'suggest',
548 ),
549 ),
550 ),
551 ),
552 'keywords' => array(
553 'exclude' => 1,
554 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.keywords',
555 'config' => array(
556 'type' => 'text',
557 'cols' => '40',
558 'rows' => '3',
559 ),
560 ),
561 'description' => array(
562 'exclude' => 1,
563 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
564 'config' => array(
565 'type' => 'text',
566 'cols' => '40',
567 'rows' => '3',
568 ),
569 ),
570 'abstract' => array(
571 'exclude' => 1,
572 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.abstract',
573 'config' => array(
574 'type' => 'text',
575 'cols' => '40',
576 'rows' => '3',
577 ),
578 ),
579 'author' => array(
580 'exclude' => 1,
581 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.author',
582 'config' => array(
583 'type' => 'input',
584 'size' => '23',
585 'eval' => 'trim',
586 'max' => '80',
587 ),
588 ),
589 'author_email' => array(
590 'exclude' => 1,
591 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
592 'config' => array(
593 'type' => 'input',
594 'size' => '23',
595 'eval' => 'trim',
596 'max' => '80',
597 'softref' => 'email[subst]',
598 ),
599 ),
600 'media' => array(
601 'exclude' => 1,
602 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.media',
603 'config' => array(
604 'type' => 'group',
605 'internal_type' => 'file',
606 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . ',html,htm,ttf,txt,css',
607 'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
608 'uploadfolder' => 'uploads/media',
609 'show_thumbs' => '1',
610 'size' => '3',
611 'maxitems' => '100',
612 'minitems' => '0',
613 ),
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.1',
655 'shop',
656 'i/modules_shop.gif',
657 ),
658 array(
659 'LLL:EXT:cms/locallang_tca.xml:pages.module.I.2',
660 'board',
661 'i/modules_board.gif',
662 ),
663 array(
664 'LLL:EXT:cms/locallang_tca.xml:pages.module.I.3',
665 'news',
666 'i/modules_news.gif',
667 ),
668 array(
669 'LLL:EXT:cms/locallang_tca.xml:pages.module.I.4',
670 'fe_users',
671 'i/fe_users.gif',
672 ),
673 array(
674 'LLL:EXT:cms/locallang_tca.xml:pages.module.I.6',
675 'approve',
676 'state_checked.png',
677 ),
678 ),
679 'default' => '',
680 'iconsInOptionTags' => 1,
681 'noIconsBelowSelect' => 1,
682 ),
683 ),
684 'fe_login_mode' => array(
685 'exclude' => 1,
686 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode',
687 'config' => array(
688 'type' => 'select',
689 'items' => array(
690 array(
691 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enable',
692 0,
693 ),
694 array(
695 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableAll',
696 1,
697 ),
698 array(
699 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.disableGroups',
700 3,
701 ),
702 array(
703 'LLL:EXT:cms/locallang_tca.xml:pages.fe_login_mode.enableAgain',
704 2,
705 ),
706 ),
707 ),
708 ),
709 'l18n_cfg' => array(
710 'exclude' => 1,
711 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg',
712 'config' => array(
713 'type' => 'check',
714 'items' => array(
715 array(
716 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.1',
717 '',
718 ),
719 array(
720 $GLOBALS['TYPO3_CONF_VARS']['FE']['hidePagesIfNotTranslatedByDefault'] ?
721 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2a' :
722 'LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg.I.2',
723 '',
724 ),
725 ),
726 ),
727 ),
728 'backend_layout' => array(
729 'exclude' => 1,
730 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.backend_layout',
731 'config' => array(
732 'type' => 'select',
733 'foreign_table' => 'backend_layout',
734 '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',
735 'items' => array(
736 array('', 0),
737 array('LLL:EXT:cms/locallang_tca.xml:pages.backend_layout.none', -1)
738 ),
739 'selicon_cols' => 5,
740 'size' => 1,
741 'maxitems' => 1,
742 'default' => ''
743 )
744 ),
745 'backend_layout_next_level' => array(
746 'exclude' => 1,
747 'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.backend_layout_next_level',
748 'config' => array(
749 'type' => 'select',
750 'foreign_table' => 'backend_layout',
751 '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',
752 'items' => array(
753 array('', 0),
754 array('LLL:EXT:cms/locallang_tca.xml:pages.backend_layout.none', -1)
755 ),
756 'selicon_cols' => 5,
757 'size' => 1,
758 'maxitems' => 1,
759 'default' => ''
760 )
761 )
762 ),
763 'types' => array(
764 // normal
765 (string) t3lib_pageSelect::DOKTYPE_DEFAULT => array(
766 'showitem' =>
767 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
768 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
769 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
770 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
771 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
772 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
773 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
774 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.metatags;metatags,
775 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
776 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
777 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
778 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.module;module,
779 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.replace;replace,
780 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
781 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
782 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.caching;caching,
783 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
784 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
785 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
786 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
787 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
788 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
789 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
790 '),
791 // external URL
792 (string) t3lib_pageSelect::DOKTYPE_LINK => array(
793 'showitem' =>
794 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.external;external,
795 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
796 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
797 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
798 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
799 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
800 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
801 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
802 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
803 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
804 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
805 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
806 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
807 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
808 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
809 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
810 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
811 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
812 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
813 '),
814 // shortcut
815 (string) t3lib_pageSelect::DOKTYPE_SHORTCUT => array(
816 'showitem' =>
817 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcut;shortcut,
818 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.shortcutpage;shortcutpage,
819 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
820 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
821 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
822 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
823 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
824 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
825 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
826 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
827 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
828 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
829 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
830 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
831 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
832 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
833 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
834 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
835 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
836 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
837 '),
838 // mount page
839 (string) t3lib_pageSelect::DOKTYPE_MOUNTPOINT => array(
840 'showitem' =>
841 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.mountpoint;mountpoint,
842 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.mountpage;mountpage,
843 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;title,
844 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
845 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
846 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
847 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
848 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.abstract;abstract,
849 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.editorial;editorial,
850 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
851 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.layout;layout,
852 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
853 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.links;links,
854 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.language;language,
855 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;miscellaneous,
856 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
857 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
858 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
859 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
860 '),
861 // spacer
862 (string) t3lib_pageSelect::DOKTYPE_SPACER => array(
863 'showitem' =>
864 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
865 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
866 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
867 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;visibility,
868 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.access;access,
869 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
870 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;adminsonly,
871 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
872 '),
873 // Folder
874 (string) t3lib_pageSelect::DOKTYPE_SYSFOLDER => array(
875 'showitem' =>
876 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
877 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
878 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
879 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
880 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.appearance,
881 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.module;module,
882 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
883 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;adminsonly,
884 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.resources,
885 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.media;media,
886 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.storage;storage,
887 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.config;config,
888 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
889 '),
890 // trash
891 (string) t3lib_pageSelect::DOKTYPE_RECYCLER => array(
892 'showitem' =>
893 '--palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.standard;standard,
894 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.title;titleonly,
895 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
896 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.visibility;hiddenonly,
897 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.behaviour,
898 --palette--;LLL:EXT:cms/locallang_tca.xml:pages.palettes.miscellaneous;adminsonly,
899 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
900 '),
901 ),
902 'palettes' => array(
903 '1' => array(
904 'showitem' => 'starttime, endtime, extendToSubpages',
905 ),
906 '2' => array(
907 'showitem' => 'layout, lastUpdated, newUntil, no_search',
908 ),
909 '3' => array(
910 'showitem' => 'alias, target, no_cache, cache_timeout, url_scheme',
911 ),
912 '5' => array(
913 'showitem' => 'author, author_email', 'canNotCollapse' => 1,
914 ),
915 '6' => array(
916 'showitem' => 'php_tree_stop, editlock',
917 ),
918 '7' => array(
919 'showitem' => 'is_siteroot',
920 ),
921 '8' => array(
922 'showitem' => 'backend_layout_next_level'
923 ),
924 'standard' => array(
925 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel',
926 'canNotCollapse' => 1,
927 ),
928 'shortcut' => array(
929 'showitem' => 'doktype;LLL:EXT:cms/locallang_tca.xml:pages.doktype_formlabel, shortcut_mode;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode_formlabel',
930 'canNotCollapse' => 1,
931 ),
932 'shortcutpage' => array(
933 'showitem' => 'shortcut;LLL:EXT:cms/locallang_tca.xml:pages.shortcut_formlabel',
934 'canNotCollapse' => 1,
935 ),
936 'mountpoint' => array(
937 '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',
938 'canNotCollapse' => 1,
939 ),
940 'mountpage' => array(
941 'showitem' => 'mount_pid;LLL:EXT:cms/locallang_tca.xml:pages.mount_pid_formlabel',
942 'canNotCollapse' => 1,
943 ),
944 'external' => array(
945 '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',
946 'canNotCollapse' => 1,
947 ),
948 'title' => array(
949 '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',
950 'canNotCollapse' => 1,
951 ),
952 'titleonly' => array(
953 'showitem' => 'title;LLL:EXT:cms/locallang_tca.xml:pages.title_formlabel',
954 'canNotCollapse' => 1,
955 ),
956 'visibility' => array(
957 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel, nav_hide;LLL:EXT:cms/locallang_tca.xml:pages.nav_hide_formlabel',
958 'canNotCollapse' => 1,
959 ),
960 'hiddenonly' => array(
961 'showitem' => 'hidden;LLL:EXT:cms/locallang_tca.xml:pages.hidden_formlabel',
962 'canNotCollapse' => 1,
963 ),
964 'access' => array(
965 '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',
966 'canNotCollapse' => 1,
967 ),
968 'abstract' => array(
969 'showitem' => 'abstract;LLL:EXT:cms/locallang_tca.xml:pages.abstract_formlabel',
970 'canNotCollapse' => 1,
971 ),
972 'metatags' => array(
973 'showitem' => 'keywords;LLL:EXT:cms/locallang_tca.xml:pages.keywords_formlabel, --linebreak--, description;LLL:EXT:cms/locallang_tca.xml:pages.description_formlabel',
974 'canNotCollapse' => 1,
975 ),
976 'editorial' => array(
977 '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',
978 'canNotCollapse' => 1,
979 ),
980 'layout' => array(
981 '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',
982 'canNotCollapse' => 1,
983 ),
984 'module' => array(
985 'showitem' => 'module;LLL:EXT:cms/locallang_tca.xml:pages.module_formlabel',
986 'canNotCollapse' => 1,
987 ),
988 'replace' => array(
989 'showitem' => 'content_from_pid;LLL:EXT:cms/locallang_tca.xml:pages.content_from_pid_formlabel',
990 'canNotCollapse' => 1,
991 ),
992 'links' => array(
993 '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',
994 'canNotCollapse' => 1,
995 ),
996 'caching' => array(
997 'showitem' => 'cache_timeout;LLL:EXT:cms/locallang_tca.xml:pages.cache_timeout_formlabel, no_cache;LLL:EXT:cms/locallang_tca.xml:pages.no_cache_formlabel',
998 'canNotCollapse' => 1,
999 ),
1000 'language' => array(
1001 'showitem' => 'l18n_cfg;LLL:EXT:cms/locallang_tca.xml:pages.l18n_cfg_formlabel',
1002 'canNotCollapse' => 1,
1003 ),
1004 'miscellaneous' => array(
1005 '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',
1006 'canNotCollapse' => 1,
1007 ),
1008 'adminsonly' => array(
1009 'showitem' => 'editlock;LLL:EXT:cms/locallang_tca.xml:pages.editlock_formlabel',
1010 'canNotCollapse' => 1,
1011 ),
1012 'media' => array(
1013 'showitem' => 'media;LLL:EXT:cms/locallang_tca.xml:pages.media_formlabel',
1014 'canNotCollapse' => 1,
1015 ),
1016 'storage' => array(
1017 'showitem' => 'storage_pid;LLL:EXT:cms/locallang_tca.xml:pages.storage_pid_formlabel',
1018 'canNotCollapse' => 1,
1019 ),
1020 'config' => array(
1021 'showitem' => 'TSconfig;LLL:EXT:cms/locallang_tca.xml:pages.TSconfig_formlabel',
1022 'canNotCollapse' => 1,
1023 )
1024 )
1025 );
1026
1027
1028 // if the compat version is less than 4.2, pagetype 2 ("Advanced")
1029 // and pagetype 5 ("Not in menu") are added to TCA.
1030 if (!t3lib_div::compat_version('4.2')) {
1031 // Merging in CMS doktypes
1032 array_splice(
1033 $TCA['pages']['columns']['doktype']['config']['items'],
1034 2,
1035 0,
1036 array(
1037 array(
1038 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.0',
1039 '2',
1040 'i/pages.gif',
1041 ),
1042 array(
1043 'LLL:EXT:cms/locallang_tca.xml:pages.doktype.I.3',
1044 '5',
1045 'i/pages_notinmenu.gif',
1046 ),
1047 )
1048 );
1049 // setting the doktype 1 ("Standard") to show less fields
1050 $TCA['pages']['types'][1] = array(
1051 // standard
1052 'showitem' =>
1053 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
1054 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
1055 starttime, endtime, fe_group, extendToSubpages,
1056 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
1057 TSconfig;;6;nowrap;4-4-4, storage_pid;;7, l18n_cfg, backend_layout;;8,
1058 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
1059 ');
1060 // adding doktype 2 ("Advanced")
1061 $TCA['pages']['types'][2] = array(
1062 'showitem' =>
1063 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
1064 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.metadata,
1065 abstract;;5;;3-3-3, keywords, description,
1066 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.files,
1067 media,
1068 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.access,
1069 starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
1070 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.options,
1071 TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid, backend_layout;;8,
1072 --div--;LLL:EXT:cms/locallang_tca.xml:pages.tabs.extended,
1073 ');
1074 }
1075
1076 ?>