a0938d21223209b7c140e864472283b9bac9b7ed
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_news.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:core/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:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
28 'exclude' => true,
29 'config' => [
30 'type' => 'check',
31 'renderType' => 'checkboxToggle',
32 'default' => 0,
33 'items' => [
34 [
35 0 => '',
36 1 => '',
37 'invertStateDisplay' => true
38 ]
39 ],
40 ]
41 ],
42 'starttime' => [
43 'exclude' => true,
44 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
45 'config' => [
46 'type' => 'input',
47 'renderType' => 'inputDateTime',
48 'eval' => 'datetime,int',
49 'default' => 0
50 ]
51 ],
52 'endtime' => [
53 'exclude' => true,
54 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
55 'config' => [
56 'type' => 'input',
57 'renderType' => 'inputDateTime',
58 'eval' => 'datetime,int',
59 'default' => 0
60 ]
61 ],
62 'title' => [
63 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title',
64 'config' => [
65 'type' => 'input',
66 'size' => 30,
67 'max' => 255,
68 'eval' => 'required'
69 ]
70 ],
71 'content' => [
72 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.text',
73 'config' => [
74 'type' => 'text',
75 'cols' => 48,
76 'rows' => 5,
77 'enableRichtext' => true,
78 'richtextConfiguration' => 'default',
79 ],
80 ]
81 ],
82 'types' => [
83 '1' => [
84 'showitem' => '
85 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
86 title,content,
87 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
88 hidden, --palette--;;timeRestriction,
89 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
90 ',
91 ],
92 ],
93 'palettes' => [
94 'timeRestriction' => ['showitem' => 'starttime, endtime']
95 ],
96 ];