‪TYPO3CMS  10.4
sys_workspace.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'label' => 'title',
6  'tstamp' => 'tstamp',
7  'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace',
8  'descriptionColumn' => 'description',
9  'adminOnly' => true,
10  'rootLevel' => 1,
11  'delete' => 'deleted',
12  'typeicon_classes' => [
13  'default' => 'mimetypes-x-sys_workspace'
14  ],
15  'versioningWS_alwaysAllowLiveEdit' => true
16  ],
17  'columns' => [
18  'title' => [
19  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.title',
20  'config' => [
21  'type' => 'input',
22  'size' => 20,
23  'max' => 30,
24  'eval' => 'required,trim,unique'
25  ]
26  ],
27  'description' => [
28  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.description',
29  'config' => [
30  'type' => 'text',
31  'rows' => 5,
32  'cols' => 30
33  ]
34  ],
35  'adminusers' => [
36  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.adminusers',
37  'config' => [
38  'type' => 'group',
39  'internal_type' => 'db',
40  'allowed' => 'be_users,be_groups',
41  'prepend_tname' => true,
42  'size' => 3,
43  'maxitems' => 10,
44  'autoSizeMax' => 10,
45  ]
46  ],
47  'members' => [
48  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.members',
49  'config' => [
50  'type' => 'group',
51  'internal_type' => 'db',
52  'allowed' => 'be_users,be_groups',
53  'prepend_tname' => true,
54  'size' => 3,
55  'maxitems' => 100,
56  'autoSizeMax' => 10,
57  ]
58  ],
59  'db_mountpoints' => [
60  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:db_mountpoints',
61  'config' => [
62  'type' => 'group',
63  'internal_type' => 'db',
64  'allowed' => 'pages',
65  'size' => 3,
66  'maxitems' => 100,
67  'autoSizeMax' => 10,
68  ]
69  ],
70  'file_mountpoints' => [
71  'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:file_mountpoints',
72  'config' => [
73  'type' => 'select',
74  'renderType' => 'selectCheckBox',
75  'foreign_table' => 'sys_filemounts',
76  'size' => 3,
77  'maxitems' => 100,
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  'freeze' => [
91  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.freeze',
92  'config' => [
93  'type' => 'check',
94  'renderType' => 'checkboxToggle',
95  'default' => 0,
96  'items' => [
97  [
98  0 => '',
99  1 => '',
100  ]
101  ],
102  ]
103  ],
104  'live_edit' => [
105  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.live_edit',
106  'config' => [
107  'type' => 'check',
108  'renderType' => 'checkboxToggle',
109  'default' => 0,
110  'items' => [
111  [
112  0 => '',
113  1 => '',
114  ]
115  ],
116  ]
117  ],
118  'swap_modes' => [
119  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes',
120  'config' => [
121  'type' => 'select',
122  'renderType' => 'selectSingle',
123  'default' => 2,
124  'items' => [
125  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes.0', 0],
126  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes.1', 1],
127  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.swap_modes.2', 2],
128  ]
129  ]
130  ],
131  'publish_access' => [
132  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_access',
133  'config' => [
134  'type' => 'check',
135  'items' => [
136  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_access.1', 0],
137  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_access.2', 0]
138  ]
139  ]
140  ],
141  'previewlink_lifetime' => [
142  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.previewlink_lifetime',
143  'config' => [
144  'type' => 'input',
145  'eval' => 'int',
146  'size' => 10,
147  'default' => 48,
148  ]
149  ],
150  'stagechg_notification' => [
151  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification',
152  'config' => [
153  'type' => 'select',
154  'renderType' => 'selectSingle',
155  'items' => [
156  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification.0', 0],
157  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification.1', 1],
158  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.stagechg_notification.10', 10]
159  ]
160  ]
161  ],
162  'custom_stages' => [
163  'exclude' => true,
164  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
165  'config' => [
166  'type' => 'inline',
167  'foreign_table' => 'sys_workspace_stage',
168  'appearance' => [
169  'useSortable' => true,
170  'expandSingle' => true,
171  ],
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  previewlink_lifetime,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 ];