‪TYPO3CMS  9.5
sys_workspace.php
Go to the documentation of this file.
1 <?php
2 return [
3  'ctrl' => [
4  'label' => 'title',
5  'tstamp' => 'tstamp',
6  'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace',
7  'descriptionColumn' => 'description',
8  'adminOnly' => true,
9  'rootLevel' => 1,
10  'delete' => 'deleted',
11  'typeicon_classes' => [
12  'default' => 'mimetypes-x-sys_workspace'
13  ],
14  'versioningWS_alwaysAllowLiveEdit' => true
15  ],
16  'columns' => [
17  'title' => [
18  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title',
19  'config' => [
20  'type' => 'input',
21  'size' => 20,
22  'max' => 30,
23  'eval' => 'required,trim,unique'
24  ]
25  ],
26  'description' => [
27  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
28  'config' => [
29  'type' => 'text',
30  'rows' => 5,
31  'cols' => 30
32  ]
33  ],
34  'adminusers' => [
35  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.adminusers',
36  'config' => [
37  'type' => 'group',
38  'internal_type' => 'db',
39  'allowed' => 'be_users,be_groups',
40  'prepend_tname' => true,
41  'size' => 3,
42  'maxitems' => 10,
43  'autoSizeMax' => 10,
44  ]
45  ],
46  'members' => [
47  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.members',
48  'config' => [
49  'type' => 'group',
50  'internal_type' => 'db',
51  'allowed' => 'be_users,be_groups',
52  'prepend_tname' => true,
53  'size' => 3,
54  'maxitems' => 100,
55  'autoSizeMax' => 10,
56  ]
57  ],
58  'db_mountpoints' => [
59  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:db_mountpoints',
60  'config' => [
61  'type' => 'group',
62  'internal_type' => 'db',
63  'allowed' => 'pages',
64  'size' => 3,
65  'maxitems' => 25,
66  'autoSizeMax' => 10,
67  ]
68  ],
69  'file_mountpoints' => [
70  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints',
71  'config' => [
72  'type' => 'select',
73  'renderType' => 'selectCheckBox',
74  'foreign_table' => 'sys_filemounts',
75  'foreign_table_where' => ' ORDER BY sys_filemounts.title',
76  'size' => 3,
77  'maxitems' => 25,
78  'autoSizeMax' => 10,
79  ]
80  ],
81  'publish_time' => [
82  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_time',
83  'config' => [
84  'type' => 'input',
85  'renderType' => 'inputDateTime',
86  'eval' => 'datetime,int',
87  'default' => 0,
88  ]
89  ],
90  'unpublish_time' => [
91  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.unpublish_time',
92  'config' => [
93  'type' => 'input',
94  'renderType' => 'inputDateTime',
95  'eval' => 'datetime,int',
96  'default' => 0,
97  'range' => [
98  'upper' => mktime(0, 0, 0, 1, 1, 2038)
99  ]
100  ],
101  ],
102  'freeze' => [
103  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.freeze',
104  'config' => [
105  'type' => 'check',
106  'renderType' => 'checkboxToggle',
107  'default' => 0,
108  'items' => [
109  [
110  0 => '',
111  1 => '',
112  ]
113  ],
114  ]
115  ],
116  'live_edit' => [
117  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.live_edit',
118  'config' => [
119  'type' => 'check',
120  'renderType' => 'checkboxToggle',
121  'default' => 0,
122  'items' => [
123  [
124  0 => '',
125  1 => '',
126  ]
127  ],
128  ]
129  ],
130  'swap_modes' => [
131  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes',
132  'config' => [
133  'type' => 'select',
134  'renderType' => 'selectSingle',
135  'default' => 2,
136  'items' => [
137  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes.0', 0],
138  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes.1', 1],
139  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes.2', 2],
140  ]
141  ]
142  ],
143  'publish_access' => [
144  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_access',
145  'config' => [
146  'type' => 'check',
147  'items' => [
148  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_access.1', 0],
149  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_access.2', 0]
150  ]
151  ]
152  ],
153  'stagechg_notification' => [
154  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification',
155  'config' => [
156  'type' => 'select',
157  'renderType' => 'selectSingle',
158  'items' => [
159  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification.0', 0],
160  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification.1', 1],
161  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification.10', 10]
162  ]
163  ]
164  ],
165  'custom_stages' => [
166  'exclude' => true,
167  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
168  'config' => [
169  'type' => 'inline',
170  'foreign_table' => 'sys_workspace_stage',
171  'appearance' => 'useSortable,expandSingle',
172  'foreign_field' => 'parentid',
173  'foreign_table_field' => 'parenttable',
174  'minitems' => 0
175  ],
176  'default' => 0
177  ],
178  'edit_notification_defaults' => [
179  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
180  'config' => [
181  'type' => 'group',
182  'internal_type' => 'db',
183  'allowed' => 'be_users,be_groups',
184  'prepend_tname' => true,
185  'size' => 3,
186  'maxitems' => 100,
187  'autoSizeMax' => 20,
188  ]
189  ],
190  'edit_allow_notificaton_settings' => [
191  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
192  'config' => [
193  'type' => 'check',
194  'items' => [
195  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
196  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
197  ],
198  'default' => 3,
199  'cols' => 1,
200  ]
201  ],
202  'edit_notification_preselection' => [
203  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
204  'config' => [
205  'type' => 'check',
206  'items' => [
207  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
208  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
209  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
210  ],
211  'default' => 2,
212  'cols' => 1,
213  ]
214  ],
215  'publish_notification_defaults' => [
216  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
217  'config' => [
218  'type' => 'group',
219  'internal_type' => 'db',
220  'allowed' => 'be_users,be_groups',
221  'prepend_tname' => true,
222  'size' => 3,
223  'maxitems' => 100,
224  'autoSizeMax' => 20,
225  ]
226  ],
227  'publish_allow_notificaton_settings' => [
228  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
229  'config' => [
230  'type' => 'check',
231  'items' => [
232  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
233  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
234  ],
235  'default' => 3,
236  'cols' => 1,
237  ]
238  ],
239  'publish_notification_preselection' => [
240  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
241  'config' => [
242  'type' => 'check',
243  'items' => [
244  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
245  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
246  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
247  ],
248  'default' => 1,
249  'cols' => 1,
250  ]
251  ],
252  'execute_notification_defaults' => [
253  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
254  'config' => [
255  'type' => 'group',
256  'internal_type' => 'db',
257  'allowed' => 'be_users,be_groups',
258  'prepend_tname' => true,
259  'size' => 3,
260  'maxitems' => 100,
261  'autoSizeMax' => 20,
262  ]
263  ],
264  'execute_allow_notificaton_settings' => [
265  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
266  'config' => [
267  'type' => 'check',
268  'items' => [
269  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
270  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
271  ],
272  'default' => 3,
273  'cols' => 1,
274  ]
275  ],
276  'execute_notification_preselection' => [
277  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
278  'config' => [
279  'type' => 'check',
280  'items' => [
281  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
282  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
283  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
284  ],
285  'default' => 3,
286  'cols' => 1,
287  ]
288  ]
289  ],
290  'palettes' => [
291  'main' => [
292  'showitem' => 'title,freeze'
293  ],
294  'memberlist' => [
295  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.users',
296  'showitem' => 'adminusers,members'
297  ],
298  'stage.edit' => [
299  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.palette.stage.edit',
300  'showitem' => 'edit_allow_notificaton_settings, edit_notification_preselection,',
301  ],
302  'stage.publish' => [
303  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.palette.stage.publish',
304  'showitem' => 'publish_allow_notificaton_settings, publish_notification_preselection,',
305  ],
306  'stage.execute' => [
307  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.palette.stage.execute',
308  'showitem' => 'execute_allow_notificaton_settings, execute_notification_preselection,',
309  ]
310  ],
311  'types' => [
312  '0' => ['showitem' => '
313  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
314  --palette--;;main,
315  stagechg_notification,
316  --palette--;;memberlist,
317  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.internal_stages,
318  --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,
319  --palette--;;stage.edit, edit_notification_defaults,
320  --palette--;;stage.publish, publish_notification_defaults,
321  --palette--;;stage.execute, execute_notification_defaults,
322  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.custom_stages,
323  custom_stages,
324  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.mountpoints,
325  db_mountpoints,file_mountpoints,
326  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.publish_access,
327  live_edit,swap_modes,publish_access,publish_time,
328  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
329  description,
330  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
331  ']
332  ]
333 ];