[!!!][TASK] Remove deprecated disable_autocreate feature of 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 'iconfile' => 'sys_workspace.png',
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' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
97 'iconsInOptionTags' => 1
98 )
99 ),
100 'publish_time' => array(
101 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_time',
102 'config' => array(
103 'type' => 'input',
104 'size' => '8',
105 'max' => '20',
106 'eval' => 'datetime',
107 'default' => '0',
108 'checkbox' => '0'
109 )
110 ),
111 'unpublish_time' => array(
112 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.unpublish_time',
113 'config' => array(
114 'type' => 'input',
115 'size' => '8',
116 'max' => '20',
117 'eval' => 'datetime',
118 'checkbox' => '0',
119 'default' => '0',
120 'range' => array(
121 'upper' => mktime(0, 0, 0, 12, 31, 2020)
122 )
123 ),
124 'displayCond' => 'FALSE'
125 ),
126 'freeze' => array(
127 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.freeze',
128 'config' => array(
129 'type' => 'check',
130 'default' => '0'
131 )
132 ),
133 'live_edit' => array(
134 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.live_edit',
135 'config' => array(
136 'type' => 'check',
137 'default' => '0'
138 )
139 ),
140 'swap_modes' => array(
141 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.swap_modes',
142 'config' => array(
143 'type' => 'select',
144 'items' => array(
145 array('', 0),
146 array('Swap-Into-Workspace on Auto-publish', 1),
147 array('Disable Swap-Into-Workspace', 2)
148 )
149 )
150 ),
151 'publish_access' => array(
152 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_access',
153 'config' => array(
154 'type' => 'check',
155 'items' => array(
156 array('Publish only content in publish stage', 0),
157 array('Only workspace owner can publish', 0)
158 )
159 )
160 ),
161 'stagechg_notification' => array(
162 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.stagechg_notification',
163 'config' => array(
164 'type' => 'select',
165 'items' => array(
166 array('', 0),
167 array('Notify users on next stage only', 1),
168 array('Notify all users on any change', 10)
169 )
170 )
171 ),
172 'custom_stages' => array(
173 'exclude' => 1,
174 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
175 'config' => array(
176 'type' => 'inline',
177 'foreign_table' => 'sys_workspace_stage',
178 'appearance' => 'useSortable,expandSingle',
179 'foreign_field' => 'parentid',
180 'foreign_table_field' => 'parenttable',
181 'minitems' => 0
182 ),
183 'default' => 0
184 ),
185 'edit_notification_mode' => array(
186 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_mode',
187 'config' => array(
188 'type' => 'select',
189 'items' => array(
190 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
191 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
192 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
193 )
194 )
195 ),
196 'edit_notification_defaults' => array(
197 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_defaults',
198 'displayCond' => 'FIELD:edit_notification_mode:IN:0,1',
199 'config' => array(
200 'type' => 'group',
201 'internal_type' => 'db',
202 'allowed' => 'be_users,be_groups',
203 'prepend_tname' => 1,
204 'size' => '3',
205 'maxitems' => '100',
206 'autoSizeMax' => 20,
207 'show_thumbs' => '1',
208 'wizards' => array(
209 'suggest' => array(
210 'type' => 'suggest'
211 )
212 )
213 )
214 ),
215 'edit_allow_notificaton_settings' => array(
216 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_allow_notificaton_settings',
217 'config' => array(
218 'type' => 'check',
219 'default' => 1
220 )
221 ),
222 'publish_notification_mode' => array(
223 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_mode',
224 'config' => array(
225 'type' => 'select',
226 'items' => array(
227 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
228 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
229 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
230 )
231 )
232 ),
233 'publish_notification_defaults' => array(
234 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_defaults',
235 'displayCond' => 'FIELD:publish_notification_mode:IN:0,1',
236 'config' => array(
237 'type' => 'group',
238 'internal_type' => 'db',
239 'allowed' => 'be_users,be_groups',
240 'prepend_tname' => 1,
241 'size' => '3',
242 'maxitems' => '100',
243 'autoSizeMax' => 20,
244 'show_thumbs' => '1',
245 'wizards' => array(
246 'suggest' => array(
247 'type' => 'suggest'
248 )
249 )
250 )
251 ),
252 'publish_allow_notificaton_settings' => array(
253 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_allow_notificaton_settings',
254 'config' => array(
255 'type' => 'check',
256 'default' => 1
257 )
258 )
259 ),
260 'types' => array(
261 '0' => array('showitem' => 'title,description,
262 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.users,adminusers,members,
263 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.notification_settings,stagechg_notification,edit_notification_mode,edit_notification_defaults,edit_allow_notificaton_settings,publish_notification_mode,publish_notification_defaults,publish_allow_notificaton_settings,
264 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
265 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
266 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,custom_stages,
267 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.other,freeze,live_edit,swap_modes,publish_access')
268 )
269 );