TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Configuration/TCA/sys_category.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_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:lang/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:lang/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:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
67  'config' => [
68  'type' => 'select',
69  'renderType' => 'selectSingle',
70  'foreign_table' => 'sys_language',
71  'foreign_table_where' => 'ORDER BY sys_language.title',
72  'items' => [
73  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
74  ['LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
75  ],
76  'default' => 0,
77  'showIconTable' => true,
78  ]
79  ],
80  'l10n_parent' => [
81  'displayCond' => 'FIELD:sys_language_uid:>:0',
82  'exclude' => true,
83  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
84  'config' => [
85  'type' => 'select',
86  'renderType' => 'selectSingle',
87  'items' => [
88  ['', 0]
89  ],
90  'foreign_table' => 'sys_category',
91  'foreign_table_where' => 'AND sys_category.uid=###REC_FIELD_l10n_parent### AND sys_category.sys_language_uid IN (-1,0)',
92  'default' => 0
93  ]
94  ],
95  'l10n_diffsource' => [
96  'config' => [
97  'type' => 'passthrough',
98  'default' => ''
99  ]
100  ],
101  'hidden' => [
102  'exclude' => true,
103  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
104  'config' => [
105  'type' => 'check'
106  ]
107  ],
108  'starttime' => [
109  'exclude' => true,
110  'l10n_mode' => 'mergeIfNotBlank',
111  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
112  'config' => [
113  'type' => 'input',
114  'size' => 10,
115  'eval' => 'datetime',
116  'default' => 0
117  ]
118  ],
119  'endtime' => [
120  'exclude' => true,
121  'l10n_mode' => 'mergeIfNotBlank',
122  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
123  'config' => [
124  'type' => 'input',
125  'size' => 8,
126  'eval' => 'datetime',
127  'default' => 0,
128  'range' => [
129  'upper' => mktime(0, 0, 0, 1, 1, 2038),
130  ]
131  ]
132  ],
133  'title' => [
134  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_category.title',
135  'config' => [
136  'type' => 'input',
137  'width' => 200,
138  'eval' => 'trim,required'
139  ]
140  ],
141  'description' => [
142  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_category.description',
143  'config' => [
144  'type' => 'text',
145  'default' => '',
146  ]
147  ],
148  'parent' => [
149  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_category.parent',
150  'config' => [
151  'minitems' => 0,
152  'maxitems' => 1,
153  'type' => 'select',
154  'renderType' => 'selectTree',
155  'foreign_table' => 'sys_category',
156  'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.sorting ASC',
157  'treeConfig' => [
158  'parentField' => 'parent',
159  'appearance' => [
160  'expandAll' => true,
161  'showHeader' => true,
162  'maxLevels' => 99,
163  ],
164  ],
165  'default' => 0
166  ]
167  ],
168  'items' => [
169  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_category.items',
170  'config' => [
171  'type' => 'group',
172  'internal_type' => 'db',
173  'allowed' => '*',
174  'MM' => 'sys_category_record_mm',
175  'MM_oppositeUsage' => [],
176  'size' => 10,
177  'show_thumbs' => false
178  ]
179  ]
180  ]
181 ];