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