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