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