‪TYPO3CMS  9.5
sys_collection.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_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  't3ver_label' => [
38  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
39  'config' => [
40  'type' => 'input',
41  'size' => 30,
42  'max' => 30
43  ]
44  ],
45  'sys_language_uid' => [
46  'exclude' => true,
47  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
48  'config' => [
49  'type' => 'select',
50  'renderType' => 'selectSingle',
51  'foreign_table' => 'sys_language',
52  'foreign_table_where' => 'ORDER BY sys_language.title',
53  'items' => [
54  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
55  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
56  ],
57  'default' => 0,
58  'fieldWizard' => [
59  'selectIcons' => [
60  'disabled' => false,
61  ],
62  ],
63  ]
64  ],
65  'l10n_parent' => [
66  'displayCond' => 'FIELD:sys_language_uid:>:0',
67  'exclude' => true,
68  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
69  'config' => [
70  'type' => 'select',
71  'renderType' => 'selectSingle',
72  'items' => [
73  ['', 0]
74  ],
75  'foreign_table' => 'sys_file_collection',
76  'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
77  ]
78  ],
79  'l10n_diffsource' => [
80  'config' => [
81  'type' => 'passthrough',
82  'default' => ''
83  ]
84  ],
85  'hidden' => [
86  'exclude' => true,
87  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
88  'config' => [
89  'type' => 'check',
90  'renderType' => 'checkboxToggle',
91  'default' => 0,
92  'items' => [
93  [
94  0 => '',
95  1 => '',
96  'invertStateDisplay' => true
97  ]
98  ],
99  ]
100  ],
101  'starttime' => [
102  'exclude' => true,
103  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
104  'config' => [
105  'type' => 'input',
106  'renderType' => 'inputDateTime',
107  'eval' => 'date,int',
108  'default' => 0,
109  ]
110  ],
111  'endtime' => [
112  'exclude' => true,
113  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
114  'config' => [
115  'type' => 'input',
116  'renderType' => 'inputDateTime',
117  'eval' => 'date,int',
118  'default' => 0,
119  'range' => [
120  'upper' => mktime(0, 0, 0, 1, 1, 2038),
121  ]
122  ]
123  ],
124  'fe_group' => [
125  'exclude' => true,
126  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
127  'config' => [
128  'type' => 'select',
129  'renderType' => 'selectSingle',
130  'items' => [
131  ['', 0],
132  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', -1],
133  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', -2],
134  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', '--div--']
135  ],
136  'foreign_table' => 'fe_groups'
137  ]
138  ],
139  'table_name' => [
140  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.table_name',
141  'config' => [
142  'type' => 'select',
143  'renderType' => 'selectSingle',
144  'special' => 'tables'
145  ]
146  ],
147  'items' => [
148  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.items',
149  'config' => [
150  'type' => 'group',
151  'internal_type' => 'db',
152  'prepend_tname' => true,
153  'allowed' => '*',
154  'MM' => 'sys_collection_entries',
155  'MM_hasUidField' => true,
156  'multiple' => true,
157  'size' => 5
158  ]
159  ],
160  'title' => [
161  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.title',
162  'config' => [
163  'type' => 'input',
164  'size' => 60,
165  'eval' => 'required'
166  ]
167  ],
168  'description' => [
169  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.description',
170  'config' => [
171  'type' => 'text',
172  'cols' => 60,
173  'rows' => 5
174  ]
175  ],
176  'type' => [
177  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.type',
178  'config' => [
179  'type' => 'select',
180  'renderType' => 'selectSingle',
181  'items' => [
182  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.type.static', 'static']
183  ],
184  'default' => 'static'
185  ]
186  ]
187  ],
188  'types' => [
189  'static' => [
190  'showitem' => '
191  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
192  type,title,table_name,items,
193  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
194  --palette--;;language,
195  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
196  hidden,--palette--;;timeRestriction,fe_group,
197  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
198  description,
199  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
200  ',
201  ],
202  ],
203  'palettes' => [
204  'timeRestriction' => ['showitem' => 'starttime, endtime'],
205  'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
206  ]
207 ];