6a621023436df9a470c079e2237e9ee5bd7f3a48
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Configuration / TCA / sys_workspace.php
1 <?php
2 return [
3 'ctrl' => [
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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:core/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 'displayCond' => 'FIELD:edit_allow_notificaton_settings:BIT:1',
166 'config' => [
167 'type' => 'group',
168 'internal_type' => 'db',
169 'allowed' => 'be_users,be_groups',
170 'prepend_tname' => true,
171 'size' => 3,
172 'maxitems' => 100,
173 'autoSizeMax' => 20,
174 ]
175 ],
176 'edit_allow_notificaton_settings' => [
177 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
178 'config' => [
179 'type' => 'check',
180 'items' => [
181 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
182 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
183 ],
184 'default' => 3,
185 'cols' => 2,
186 ]
187 ],
188 'edit_notification_preselection' => [
189 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
190 'config' => [
191 'type' => 'check',
192 'items' => [
193 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
194 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
195 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
196 ],
197 'default' => 2,
198 'cols' => 3,
199 ]
200 ],
201 'publish_notification_defaults' => [
202 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
203 'displayCond' => 'FIELD:publish_allow_notificaton_settings:BIT:1',
204 'config' => [
205 'type' => 'group',
206 'internal_type' => 'db',
207 'allowed' => 'be_users,be_groups',
208 'prepend_tname' => true,
209 'size' => 3,
210 'maxitems' => 100,
211 'autoSizeMax' => 20,
212 ]
213 ],
214 'publish_allow_notificaton_settings' => [
215 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
216 'config' => [
217 'type' => 'check',
218 'items' => [
219 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
220 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
221 ],
222 'default' => 3,
223 'cols' => 2,
224 ]
225 ],
226 'publish_notification_preselection' => [
227 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
228 'config' => [
229 'type' => 'check',
230 'items' => [
231 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
232 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
233 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
234 ],
235 'default' => 1,
236 'cols' => 3,
237 ]
238 ],
239 'execute_notification_defaults' => [
240 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_defaults',
241 'displayCond' => 'FIELD:execute_allow_notificaton_settings:BIT:1',
242 'config' => [
243 'type' => 'group',
244 'internal_type' => 'db',
245 'allowed' => 'be_users,be_groups',
246 'prepend_tname' => true,
247 'size' => 3,
248 'maxitems' => 100,
249 'autoSizeMax' => 20,
250 ]
251 ],
252 'execute_allow_notificaton_settings' => [
253 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog',
254 'config' => [
255 'type' => 'check',
256 'items' => [
257 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.showDialog', ''],
258 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.settingsDialog.changeablePreselection', ''],
259 ],
260 'default' => 3,
261 'cols' => 2,
262 ]
263 ],
264 'execute_notification_preselection' => [
265 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection',
266 'config' => [
267 'type' => 'check',
268 'items' => [
269 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.owners', ''],
270 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.members', ''],
271 ['LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.preselection.editors', ''],
272 ],
273 'default' => 3,
274 'cols' => 3,
275 ]
276 ]
277 ],
278 'palettes' => [
279 'stage.edit' => [
280 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.palette.stage.edit',
281 'showitem' => 'edit_allow_notificaton_settings, edit_notification_preselection,',
282 ],
283 'stage.publish' => [
284 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.palette.stage.publish',
285 'showitem' => 'publish_allow_notificaton_settings, publish_notification_preselection,',
286 ],
287 'stage.execute' => [
288 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.palette.stage.execute',
289 'showitem' => 'execute_allow_notificaton_settings, execute_notification_preselection,',
290 ]
291 ],
292 'types' => [
293 '0' => ['showitem' => '
294 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
295 title,
296 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.tabs.users,
297 adminusers,members,
298 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,
299 stagechg_notification,
300 --palette--;;stage.edit, edit_notification_defaults,
301 --palette--;;stage.publish, publish_notification_defaults,
302 --palette--;;stage.execute, execute_notification_defaults,
303 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,
304 db_mountpoints,file_mountpoints,
305 --div--;LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_filemounts.tabs.publishing,
306 publish_time,
307 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,
308 custom_stages,
309 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
310 freeze,live_edit,swap_modes,publish_access,
311 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:notes,
312 description,
313 --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:extended,
314 ']
315 ]
316 ];