[!!!][TASK] Remove t3ver_label database field
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / sys_collection.php
1 <?php
2 return [
3 'ctrl' => [
4 'title' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection',
5 'label' => 'title',
6 'tstamp' => 'tstamp',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'descriptionColumn' => 'description',
10 'versioningWS' => true,
11 'origUid' => 't3_origuid',
12 'languageField' => 'sys_language_uid',
13 'transOrigPointerField' => 'l10n_parent',
14 'transOrigDiffSourceField' => 'l10n_diffsource',
15 'default_sortby' => 'crdate',
16 'delete' => 'deleted',
17 'type' => 'type',
18 'rootLevel' => -1,
19 'searchFields' => 'title,description',
20 'typeicon_column' => 'type',
21 'typeicon_classes' => [
22 'default' => 'apps-clipboard-list',
23 'static' => 'apps-clipboard-list',
24 'filter' => 'actions-system-tree-search-open'
25 ],
26 'enablecolumns' => [
27 'disabled' => 'hidden',
28 'starttime' => 'starttime',
29 'endtime' => 'endtime',
30 'fe_group' => 'fe_group'
31 ],
32 ],
33 'interface' => [
34 'showRecordFieldList' => 'title, description, table_name, items'
35 ],
36 'columns' => [
37 'sys_language_uid' => [
38 'exclude' => true,
39 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
40 'config' => [
41 'type' => 'select',
42 'renderType' => 'selectSingle',
43 'foreign_table' => 'sys_language',
44 'foreign_table_where' => 'ORDER BY sys_language.title',
45 'items' => [
46 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
47 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
48 ],
49 'default' => 0,
50 'fieldWizard' => [
51 'selectIcons' => [
52 'disabled' => false,
53 ],
54 ],
55 ]
56 ],
57 'l10n_parent' => [
58 'displayCond' => 'FIELD:sys_language_uid:>:0',
59 'exclude' => true,
60 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
61 'config' => [
62 'type' => 'select',
63 'renderType' => 'selectSingle',
64 'items' => [
65 ['', 0]
66 ],
67 'foreign_table' => 'sys_file_collection',
68 'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
69 ]
70 ],
71 'l10n_diffsource' => [
72 'config' => [
73 'type' => 'passthrough',
74 'default' => ''
75 ]
76 ],
77 'hidden' => [
78 'exclude' => true,
79 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
80 'config' => [
81 'type' => 'check',
82 'renderType' => 'checkboxToggle',
83 'default' => 0,
84 'items' => [
85 [
86 0 => '',
87 1 => '',
88 'invertStateDisplay' => true
89 ]
90 ],
91 ]
92 ],
93 'starttime' => [
94 'exclude' => true,
95 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
96 'config' => [
97 'type' => 'input',
98 'renderType' => 'inputDateTime',
99 'eval' => 'date,int',
100 'default' => 0,
101 ]
102 ],
103 'endtime' => [
104 'exclude' => true,
105 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
106 'config' => [
107 'type' => 'input',
108 'renderType' => 'inputDateTime',
109 'eval' => 'date,int',
110 'default' => 0,
111 'range' => [
112 'upper' => mktime(0, 0, 0, 1, 1, 2038),
113 ]
114 ]
115 ],
116 'fe_group' => [
117 'exclude' => true,
118 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
119 'config' => [
120 'type' => 'select',
121 'renderType' => 'selectSingle',
122 'items' => [
123 ['', 0],
124 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', -1],
125 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', -2],
126 ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', '--div--']
127 ],
128 'foreign_table' => 'fe_groups'
129 ]
130 ],
131 'table_name' => [
132 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.table_name',
133 'config' => [
134 'type' => 'select',
135 'renderType' => 'selectSingle',
136 'special' => 'tables'
137 ]
138 ],
139 'items' => [
140 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.items',
141 'config' => [
142 'type' => 'group',
143 'internal_type' => 'db',
144 'prepend_tname' => true,
145 'allowed' => '*',
146 'MM' => 'sys_collection_entries',
147 'MM_hasUidField' => true,
148 'multiple' => true,
149 'size' => 5
150 ]
151 ],
152 'title' => [
153 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.title',
154 'config' => [
155 'type' => 'input',
156 'size' => 60,
157 'eval' => 'required'
158 ]
159 ],
160 'description' => [
161 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.description',
162 'config' => [
163 'type' => 'text',
164 'cols' => 60,
165 'rows' => 5
166 ]
167 ],
168 'type' => [
169 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.type',
170 'config' => [
171 'type' => 'select',
172 'renderType' => 'selectSingle',
173 'items' => [
174 ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.type.static', 'static']
175 ],
176 'default' => 'static'
177 ]
178 ]
179 ],
180 'types' => [
181 'static' => [
182 'showitem' => '
183 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
184 type,title,table_name,items,
185 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
186 --palette--;;language,
187 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
188 hidden,--palette--;;timeRestriction,fe_group,
189 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
190 description,
191 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
192 ',
193 ],
194 ],
195 'palettes' => [
196 'timeRestriction' => ['showitem' => 'starttime, endtime'],
197 'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
198 ]
199 ];