[TASK] Remove deprecated code from ext:workspaces
[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 'typeicon_classes' => array(
11 'default' => 'mimetypes-x-sys_workspace'
12 ),
13 'versioningWS_alwaysAllowLiveEdit' => true
14 ),
15 'columns' => array(
16 'title' => array(
17 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.title',
18 'config' => array(
19 'type' => 'input',
20 'size' => '20',
21 'max' => '30',
22 'eval' => 'required,trim,unique'
23 )
24 ),
25 'description' => array(
26 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
27 'config' => array(
28 'type' => 'text',
29 'rows' => 5,
30 'cols' => 30
31 )
32 ),
33 'adminusers' => array(
34 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.adminusers',
35 'config' => array(
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' => array(
45 'suggest' => array(
46 'type' => 'suggest'
47 )
48 )
49 )
50 ),
51 'members' => array(
52 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.members',
53 'config' => array(
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' => array(
63 'suggest' => array(
64 'type' => 'suggest'
65 )
66 )
67 )
68 ),
69 'db_mountpoints' => array(
70 'label' => 'LLL:EXT:lang/locallang_tca.xlf:db_mountpoints',
71 'config' => array(
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' => array(
80 'suggest' => array(
81 'type' => 'suggest'
82 )
83 )
84 )
85 ),
86 'file_mountpoints' => array(
87 'label' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints',
88 'config' => array(
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' => array(
99 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_time',
100 'config' => array(
101 'type' => 'input',
102 'size' => '8',
103 'eval' => 'datetime',
104 'default' => '0',
105 )
106 ),
107 'unpublish_time' => array(
108 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.unpublish_time',
109 'config' => array(
110 'type' => 'input',
111 'size' => '8',
112 'eval' => 'datetime',
113 'default' => '0',
114 'range' => array(
115 'upper' => mktime(0, 0, 0, 12, 31, 2020)
116 )
117 ),
118 'displayCond' => 'FALSE'
119 ),
120 'freeze' => array(
121 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.freeze',
122 'config' => array(
123 'type' => 'check',
124 'default' => '0'
125 )
126 ),
127 'live_edit' => array(
128 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.live_edit',
129 'config' => array(
130 'type' => 'check',
131 'default' => '0'
132 )
133 ),
134 'swap_modes' => array(
135 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.swap_modes',
136 'config' => array(
137 'type' => 'select',
138 'renderType' => 'selectSingle',
139 'items' => array(
140 array('', 0),
141 array('Swap-Into-Workspace on Auto-publish', 1),
142 array('Disable Swap-Into-Workspace', 2)
143 )
144 )
145 ),
146 'publish_access' => array(
147 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_access',
148 'config' => array(
149 'type' => 'check',
150 'items' => array(
151 array('Publish only content in publish stage', 0),
152 array('Only workspace owner can publish', 0)
153 )
154 )
155 ),
156 'stagechg_notification' => array(
157 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.stagechg_notification',
158 'config' => array(
159 'type' => 'select',
160 'renderType' => 'selectSingle',
161 'items' => array(
162 array('', 0),
163 array('Notify users on next stage only', 1),
164 array('Notify all users on any change', 10)
165 )
166 )
167 ),
168 'custom_stages' => array(
169 'exclude' => 1,
170 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
171 'config' => array(
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 'edit_notification_defaults' => array(
182 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
183 'displayCond' => 'FIELD:edit_allow_notificaton_settings:BIT:1',
184 'config' => array(
185 'type' => 'group',
186 'internal_type' => 'db',
187 'allowed' => 'be_users,be_groups',
188 'prepend_tname' => 1,
189 'size' => '3',
190 'maxitems' => '100',
191 'autoSizeMax' => 20,
192 'show_thumbs' => '1',
193 'wizards' => array(
194 'suggest' => array(
195 'type' => 'suggest'
196 )
197 )
198 )
199 ),
200 'edit_allow_notificaton_settings' => array(
201 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
202 'config' => array(
203 'type' => 'check',
204 'items' => array(
205 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''),
206 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''),
207 ),
208 'default' => 3,
209 'cols' => 2,
210 )
211 ),
212 'edit_notification_preselection' => array(
213 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
214 'config' => array(
215 'type' => 'check',
216 'items' => array(
217 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''),
218 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''),
219 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''),
220 ),
221 'default' => 2,
222 'cols' => 3,
223 )
224 ),
225 'publish_notification_defaults' => array(
226 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
227 'displayCond' => 'FIELD:publish_allow_notificaton_settings:BIT:1',
228 'config' => array(
229 'type' => 'group',
230 'internal_type' => 'db',
231 'allowed' => 'be_users,be_groups',
232 'prepend_tname' => 1,
233 'size' => '3',
234 'maxitems' => '100',
235 'autoSizeMax' => 20,
236 'show_thumbs' => '1',
237 'wizards' => array(
238 'suggest' => array(
239 'type' => 'suggest'
240 )
241 )
242 )
243 ),
244 'publish_allow_notificaton_settings' => array(
245 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
246 'config' => array(
247 'type' => 'check',
248 'items' => array(
249 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''),
250 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''),
251 ),
252 'default' => 3,
253 'cols' => 2,
254 )
255 ),
256 'publish_notification_preselection' => array(
257 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
258 'config' => array(
259 'type' => 'check',
260 'items' => array(
261 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''),
262 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''),
263 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''),
264 ),
265 'default' => 1,
266 'cols' => 3,
267 )
268 ),
269 'execute_notification_defaults' => array(
270 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
271 'displayCond' => 'FIELD:execute_allow_notificaton_settings:BIT:1',
272 'config' => array(
273 'type' => 'group',
274 'internal_type' => 'db',
275 'allowed' => 'be_users,be_groups',
276 'prepend_tname' => 1,
277 'size' => '3',
278 'maxitems' => '100',
279 'autoSizeMax' => 20,
280 'show_thumbs' => '1',
281 'wizards' => array(
282 'suggest' => array(
283 'type' => 'suggest'
284 )
285 )
286 )
287 ),
288 'execute_allow_notificaton_settings' => array(
289 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
290 'config' => array(
291 'type' => 'check',
292 'items' => array(
293 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''),
294 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''),
295 ),
296 'default' => 3,
297 'cols' => 2,
298 )
299 ),
300 'execute_notification_preselection' => array(
301 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
302 'config' => array(
303 'type' => 'check',
304 'items' => array(
305 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''),
306 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''),
307 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''),
308 ),
309 'default' => 3,
310 'cols' => 3,
311 )
312 )
313 ),
314 'palettes' => array(
315 'stage.edit' => array(
316 'showitem' => 'edit_allow_notificaton_settings, edit_notification_preselection,',
317 ),
318 'stage.publish' => array(
319 'showitem' => 'publish_allow_notificaton_settings, publish_notification_preselection,',
320 ),
321 'stage.execute' => array(
322 'showitem' => 'execute_allow_notificaton_settings, execute_notification_preselection,',
323 )
324 ),
325 'types' => array(
326 '0' => array('showitem' => 'title,description,
327 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.users,adminusers,members,
328 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings, stagechg_notification,
329 --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.palette.stage.edit;stage.edit, edit_notification_defaults,
330 --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.palette.stage.publish;stage.publish, publish_notification_defaults,
331 --palette--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace.palette.stage.execute;stage.execute, execute_notification_defaults,
332 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
333 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
334 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,custom_stages,
335 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.other,freeze,live_edit,swap_modes,publish_access')
336 )
337 );