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