TYPO3 CMS  TYPO3_8-7
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/Resources/Private/Language/locallang_tca.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:lang/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:lang/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:lang/Resources/Private/Language/locallang_tca.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:lang/Resources/Private/Language/locallang_tca.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:lang/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:lang/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' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
76  'size' => 3,
77  'maxitems' => 25,
78  'autoSizeMax' => 10,
79  ]
80  ],
81  'publish_time' => [
82  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.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:lang/Resources/Private/Language/locallang_tca.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:lang/Resources/Private/Language/locallang_tca.xlf:sys_workspace.freeze',
104  'config' => [
105  'type' => 'check',
106  'default' => 0
107  ]
108  ],
109  'live_edit' => [
110  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_workspace.live_edit',
111  'config' => [
112  'type' => 'check',
113  'default' => 0
114  ]
115  ],
116  'swap_modes' => [
117  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_workspace.swap_modes',
118  'config' => [
119  'type' => 'select',
120  'renderType' => 'selectSingle',
121  'items' => [
122  ['', 0],
123  ['Swap-Into-Workspace on Auto-publish', 1],
124  ['Disable Swap-Into-Workspace', 2]
125  ]
126  ]
127  ],
128  'publish_access' => [
129  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_workspace.publish_access',
130  'config' => [
131  'type' => 'check',
132  'items' => [
133  ['Publish only content in publish stage', 0],
134  ['Only workspace owner can publish', 0]
135  ]
136  ]
137  ],
138  'stagechg_notification' => [
139  'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_workspace.stagechg_notification',
140  'config' => [
141  'type' => 'select',
142  'renderType' => 'selectSingle',
143  'items' => [
144  ['', 0],
145  ['Notify users on next stage only', 1],
146  ['Notify all users on any change', 10]
147  ]
148  ]
149  ],
150  'custom_stages' => [
151  'exclude' => true,
152  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
153  'config' => [
154  'type' => 'inline',
155  'foreign_table' => 'sys_workspace_stage',
156  'appearance' => 'useSortable,expandSingle',
157  'foreign_field' => 'parentid',
158  'foreign_table_field' => 'parenttable',
159  'minitems' => 0
160  ],
161  'default' => 0
162  ],
163  'edit_notification_defaults' => [
164  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
165  'config' => [
166  'type' => 'group',
167  'internal_type' => 'db',
168  'allowed' => 'be_users,be_groups',
169  'prepend_tname' => true,
170  'size' => 3,
171  'maxitems' => 100,
172  'autoSizeMax' => 20,
173  ]
174  ],
175  'edit_allow_notificaton_settings' => [
176  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
177  'config' => [
178  'type' => 'check',
179  'items' => [
180  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
181  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
182  ],
183  'default' => 3,
184  'cols' => 2,
185  ]
186  ],
187  'edit_notification_preselection' => [
188  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
189  'config' => [
190  'type' => 'check',
191  'items' => [
192  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
193  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
194  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
195  ],
196  'default' => 2,
197  'cols' => 3,
198  ]
199  ],
200  'publish_notification_defaults' => [
201  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
202  'config' => [
203  'type' => 'group',
204  'internal_type' => 'db',
205  'allowed' => 'be_users,be_groups',
206  'prepend_tname' => true,
207  'size' => 3,
208  'maxitems' => 100,
209  'autoSizeMax' => 20,
210  ]
211  ],
212  'publish_allow_notificaton_settings' => [
213  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
214  'config' => [
215  'type' => 'check',
216  'items' => [
217  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
218  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
219  ],
220  'default' => 3,
221  'cols' => 2,
222  ]
223  ],
224  'publish_notification_preselection' => [
225  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
226  'config' => [
227  'type' => 'check',
228  'items' => [
229  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
230  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
231  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
232  ],
233  'default' => 1,
234  'cols' => 3,
235  ]
236  ],
237  'execute_notification_defaults' => [
238  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
239  'config' => [
240  'type' => 'group',
241  'internal_type' => 'db',
242  'allowed' => 'be_users,be_groups',
243  'prepend_tname' => true,
244  'size' => 3,
245  'maxitems' => 100,
246  'autoSizeMax' => 20,
247  ]
248  ],
249  'execute_allow_notificaton_settings' => [
250  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
251  'config' => [
252  'type' => 'check',
253  'items' => [
254  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
255  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
256  ],
257  'default' => 3,
258  'cols' => 2,
259  ]
260  ],
261  'execute_notification_preselection' => [
262  'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
263  'config' => [
264  'type' => 'check',
265  'items' => [
266  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
267  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
268  ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
269  ],
270  'default' => 3,
271  'cols' => 3,
272  ]
273  ]
274  ],
275  'palettes' => [
276  'stage.edit' => [
277  'showitem' => 'edit_allow_notificaton_settings, edit_notification_preselection,',
278  ],
279  'stage.publish' => [
280  'showitem' => 'publish_allow_notificaton_settings, publish_notification_preselection,',
281  ],
282  'stage.execute' => [
283  'showitem' => 'execute_allow_notificaton_settings, execute_notification_preselection,',
284  ]
285  ],
286  'types' => [
287  '0' => ['showitem' => '
288  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
289  title,
290  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.tabs.users,
291  adminusers,members,
292  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,
293  stagechg_notification,
294  --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.palette.stage.edit;stage.edit, edit_notification_defaults,
295  --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.palette.stage.publish;stage.publish, publish_notification_defaults,
296  --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.palette.stage.execute;stage.execute, execute_notification_defaults,
297  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,
298  db_mountpoints,file_mountpoints,
299  --div--;LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.tabs.publishing,
300  publish_time,
301  --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,
302  custom_stages,
303  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
304  freeze,live_edit,swap_modes,publish_access,
305  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
306  description,
307  --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
308  ']
309  ]
310 ];