‪TYPO3CMS  10.4
sys_collection.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_collection',
6  'label' => 'title',
7  'tstamp' => 'tstamp',
8  'crdate' => 'crdate',
9  'cruser_id' => 'cruser_id',
10  'descriptionColumn' => 'description',
11  'versioningWS' => true,
12  'origUid' => 't3_origuid',
13  'languageField' => 'sys_language_uid',
14  'transOrigPointerField' => 'l10n_parent',
15  'transOrigDiffSourceField' => 'l10n_diffsource',
16  'default_sortby' => 'crdate',
17  'delete' => 'deleted',
18  'type' => 'type',
19  'rootLevel' => -1,
20  'searchFields' => 'title,description',
21  'typeicon_column' => 'type',
22  'typeicon_classes' => [
23  'default' => 'apps-clipboard-list',
24  'static' => 'apps-clipboard-list',
25  'filter' => 'actions-system-tree-search-open'
26  ],
27  'enablecolumns' => [
28  'disabled' => 'hidden',
29  'starttime' => 'starttime',
30  'endtime' => 'endtime',
31  'fe_group' => 'fe_group'
32  ],
33  ],
34  'columns' => [
35  'sys_language_uid' => [
36  'exclude' => true,
37  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
38  'config' => [
39  'type' => 'select',
40  'renderType' => 'selectSingle',
41  'foreign_table' => 'sys_language',
42  'items' => [
43  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1],
44  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0]
45  ],
46  'default' => 0,
47  'fieldWizard' => [
48  'selectIcons' => [
49  'disabled' => false,
50  ],
51  ],
52  ]
53  ],
54  'l10n_parent' => [
55  'displayCond' => 'FIELD:sys_language_uid:>:0',
56  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
57  'config' => [
58  'type' => 'select',
59  'renderType' => 'selectSingle',
60  'items' => [
61  ['', 0]
62  ],
63  'foreign_table' => 'sys_file_collection',
64  'foreign_table_where' => 'AND sys_file_collection.pid=###CURRENT_PID### AND sys_file_collection.sys_language_uid IN (-1,0)'
65  ]
66  ],
67  'l10n_diffsource' => [
68  'config' => [
69  'type' => 'passthrough',
70  'default' => ''
71  ]
72  ],
73  'hidden' => [
74  'exclude' => true,
75  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
76  'config' => [
77  'type' => 'check',
78  'renderType' => 'checkboxToggle',
79  'default' => 0,
80  'items' => [
81  [
82  0 => '',
83  1 => '',
84  'invertStateDisplay' => true
85  ]
86  ],
87  ]
88  ],
89  'starttime' => [
90  'exclude' => true,
91  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
92  'config' => [
93  'type' => 'input',
94  'renderType' => 'inputDateTime',
95  'eval' => 'date,int',
96  'default' => 0,
97  ]
98  ],
99  'endtime' => [
100  'exclude' => true,
101  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
102  'config' => [
103  'type' => 'input',
104  'renderType' => 'inputDateTime',
105  'eval' => 'date,int',
106  'default' => 0,
107  'range' => [
108  'upper' => mktime(0, 0, 0, 1, 1, 2038),
109  ]
110  ]
111  ],
112  'fe_group' => [
113  'exclude' => true,
114  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.fe_group',
115  'config' => [
116  'type' => 'select',
117  'renderType' => 'selectSingle',
118  'items' => [
119  ['', 0],
120  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', -1],
121  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', -2],
122  ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', '--div--']
123  ],
124  'foreign_table' => 'fe_groups'
125  ]
126  ],
127  'table_name' => [
128  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.table_name',
129  'config' => [
130  'type' => 'select',
131  'renderType' => 'selectSingle',
132  'special' => 'tables'
133  ]
134  ],
135  'items' => [
136  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.items',
137  'config' => [
138  'type' => 'group',
139  'internal_type' => 'db',
140  'prepend_tname' => true,
141  'allowed' => '*',
142  'MM' => 'sys_collection_entries',
143  'MM_hasUidField' => true,
144  'multiple' => true,
145  'size' => 5
146  ]
147  ],
148  'title' => [
149  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.title',
150  'config' => [
151  'type' => 'input',
152  'size' => 60,
153  'eval' => 'required'
154  ]
155  ],
156  'description' => [
157  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.description',
158  'config' => [
159  'type' => 'text',
160  'cols' => 60,
161  'rows' => 5
162  ]
163  ],
164  'type' => [
165  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.type',
166  'config' => [
167  'type' => 'select',
168  'renderType' => 'selectSingle',
169  'items' => [
170  ['LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_collection.type.static', 'static']
171  ],
172  'default' => 'static'
173  ]
174  ]
175  ],
176  'types' => [
177  'static' => [
178  'showitem' => '
179  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
180  type,title,table_name,items,
181  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
182  --palette--;;language,
183  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
184  hidden,--palette--;;timeRestriction,fe_group,
185  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
186  description,
187  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
188  ',
189  ],
190  ],
191  'palettes' => [
192  'timeRestriction' => ['showitem' => 'starttime, endtime'],
193  'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
194  ]
195 ];