TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
sys_news.php
Go to the documentation of this file.
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' => true,
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  'size' => 13,
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  'size' => 13,
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  'wizards' => [
70  'RTE' => [
71  'notNewRecords' => true,
72  'RTEonly' => true,
73  'type' => 'script',
74  'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext.W.RTE',
75  'icon' => 'actions-wizard-rte',
76  'module' => [
77  'name' => 'wizard_rte'
78  ]
79  ]
80  ]
81  ],
82  'defaultExtras' => 'richtext:rte_transform',
83  ]
84  ],
85  'types' => [
86  '1' => [
87  'showitem' => '
88  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
89  title,content,
90  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
91  hidden, --palette--;;timeRestriction,
92  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
93  ',
94  ],
95  ],
96  'palettes' => [
97  'timeRestriction' => ['showitem' => 'starttime, endtime']
98  ],
99 ];