[BUGFIX] Fix wrong type in "rootLevel" option
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_news.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_news',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'adminOnly' => true,
10 'rootLevel' => 1,
11 'delete' => 'deleted',
12 'enablecolumns' => [
13 'disabled' => 'hidden',
14 'starttime' => 'starttime',
15 'endtime' => 'endtime'
16 ],
17 'default_sortby' => 'crdate DESC',
18 'typeicon_classes' => [
19 'default' => 'mimetypes-x-sys_news'
20 ]
21 ],
22 'interface' => [
23 'showRecordFieldList' => 'hidden,title,content,starttime,endtime'
24 ],
25 'columns' => [
26 'hidden' => [
27 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.disable',
28 'exclude' => true,
29 'config' => [
30 'type' => 'check',
31 'default' => 0
32 ]
33 ],
34 'starttime' => [
35 'exclude' => true,
36 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
37 'config' => [
38 'type' => 'input',
39 'renderType' => 'inputDateTime',
40 'eval' => 'datetime',
41 'default' => 0
42 ]
43 ],
44 'endtime' => [
45 'exclude' => true,
46 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
47 'config' => [
48 'type' => 'input',
49 'renderType' => 'inputDateTime',
50 'eval' => 'datetime',
51 'default' => 0
52 ]
53 ],
54 'title' => [
55 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.title',
56 'config' => [
57 'type' => 'input',
58 'size' => 30,
59 'max' => 255,
60 'eval' => 'required'
61 ]
62 ],
63 'content' => [
64 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.text',
65 'config' => [
66 'type' => 'text',
67 'cols' => 48,
68 'rows' => 5,
69 'enableRichtext' => true,
70 'richtextConfiguration' => 'default',
71 ],
72 ]
73 ],
74 'types' => [
75 '1' => [
76 'showitem' => '
77 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
78 title,content,
79 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
80 hidden, --palette--;;timeRestriction,
81 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
82 ',
83 ],
84 ],
85 'palettes' => [
86 'timeRestriction' => ['showitem' => 'starttime, endtime']
87 ],
88 ];