‪TYPO3CMS  9.5
sys_category.php
Go to the documentation of this file.
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  't3ver_label' => [
57  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
58  'config' => [
59  'type' => 'input',
60  'size' => 30,
61  'max' => 30
62  ]
63  ],
64  'sys_language_uid' => [
65  'exclude' => true,
66  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
67  'config' => [
68  'type' => 'select',
69  'renderType' => 'selectSingle',
70  'special' => 'languages',
71  'items' => [
72  [
73  'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
74  -1,
75  'flags-multiple'
76  ],
77  ],
78  'default' => 0,
79  ]
80  ],
81  'l10n_parent' => [
82  'displayCond' => 'FIELD:sys_language_uid:>:0',
83  'exclude' => true,
84  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
85  'config' => [
86  'type' => 'select',
87  'renderType' => 'selectSingle',
88  'items' => [
89  ['', 0]
90  ],
91  'foreign_table' => 'sys_category',
92  'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)',
93  'default' => 0
94  ]
95  ],
96  'l10n_diffsource' => [
97  'config' => [
98  'type' => 'passthrough',
99  'default' => ''
100  ]
101  ],
102  'hidden' => [
103  'exclude' => true,
104  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
105  'config' => [
106  'type' => 'check',
107  'renderType' => 'checkboxToggle',
108  'items' => [
109  [
110  0 => '',
111  1 => '',
112  'invertStateDisplay' => true
113  ]
114  ],
115  ]
116  ],
117  'starttime' => [
118  'exclude' => true,
119  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
120  'config' => [
121  'type' => 'input',
122  'renderType' => 'inputDateTime',
123  'eval' => 'datetime,int',
124  'default' => 0,
125  'behaviour' => [
126  'allowLanguageSynchronization' => true,
127  ]
128  ]
129  ],
130  'endtime' => [
131  'exclude' => true,
132  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
133  'config' => [
134  'type' => 'input',
135  'renderType' => 'inputDateTime',
136  'eval' => 'datetime,int',
137  'default' => 0,
138  'range' => [
139  'upper' => mktime(0, 0, 0, 1, 1, 2038),
140  ],
141  'behaviour' => [
142  'allowLanguageSynchronization' => true,
143  ]
144  ]
145  ],
146  'title' => [
147  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_category.title',
148  'config' => [
149  'type' => 'input',
150  'width' => 200,
151  'eval' => 'trim,required'
152  ]
153  ],
154  'description' => [
155  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_category.description',
156  'config' => [
157  'type' => 'text',
158  'default' => '',
159  ]
160  ],
161  'parent' => [
162  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_category.parent',
163  'config' => [
164  'minitems' => 0,
165  'maxitems' => 1,
166  'type' => 'select',
167  'renderType' => 'selectTree',
168  'foreign_table' => 'sys_category',
169  'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
170  'treeConfig' => [
171  'parentField' => 'parent',
172  'appearance' => [
173  'expandAll' => true,
174  'showHeader' => true,
175  'maxLevels' => 99,
176  ],
177  ],
178  'default' => 0
179  ]
180  ],
181  'items' => [
182  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_category.items',
183  'config' => [
184  'type' => 'group',
185  'internal_type' => 'db',
186  'allowed' => '*',
187  'MM' => 'sys_category_record_mm',
188  'MM_oppositeUsage' => [],
189  'size' => 10,
190  'fieldWizard' => [
191  'recordsOverview' => [
192  'disabled' => true,
193  ],
194  ],
195  ],
196  ],
197  ],
198 ];