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