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