63fb7a77809417491fdb0689e90d1fe0b7fac015
[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 'disable_autocreate' => array(
141 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.disable_autocreate',
142 'config' => array(
143 'type' => 'check',
144 'default' => '0'
145 )
146 ),
147 'swap_modes' => array(
148 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.swap_modes',
149 'config' => array(
150 'type' => 'select',
151 'items' => array(
152 array('', 0),
153 array('Swap-Into-Workspace on Auto-publish', 1),
154 array('Disable Swap-Into-Workspace', 2)
155 )
156 )
157 ),
158 'publish_access' => array(
159 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.publish_access',
160 'config' => array(
161 'type' => 'check',
162 'items' => array(
163 array('Publish only content in publish stage', 0),
164 array('Only workspace owner can publish', 0)
165 )
166 )
167 ),
168 'stagechg_notification' => array(
169 'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_workspace.stagechg_notification',
170 'config' => array(
171 'type' => 'select',
172 'items' => array(
173 array('', 0),
174 array('Notify users on next stage only', 1),
175 array('Notify all users on any change', 10)
176 )
177 )
178 ),
179 'custom_stages' => array(
180 'exclude' => 1,
181 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.custom_stages',
182 'config' => array(
183 'type' => 'inline',
184 'foreign_table' => 'sys_workspace_stage',
185 'appearance' => 'useSortable,expandSingle',
186 'foreign_field' => 'parentid',
187 'foreign_table_field' => 'parenttable',
188 'minitems' => 0
189 ),
190 'default' => 0
191 ),
192 'edit_notification_mode' => array(
193 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_mode',
194 'config' => array(
195 'type' => 'select',
196 'items' => array(
197 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
198 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
199 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
200 )
201 )
202 ),
203 'edit_notification_defaults' => array(
204 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_defaults',
205 'displayCond' => 'FIELD:edit_notification_mode:IN:0,1',
206 'config' => array(
207 'type' => 'group',
208 'internal_type' => 'db',
209 'allowed' => 'be_users,be_groups',
210 'prepend_tname' => 1,
211 'size' => '3',
212 'maxitems' => '100',
213 'autoSizeMax' => 20,
214 'show_thumbs' => '1',
215 'wizards' => array(
216 'suggest' => array(
217 'type' => 'suggest'
218 )
219 )
220 )
221 ),
222 'edit_allow_notificaton_settings' => array(
223 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_allow_notificaton_settings',
224 'config' => array(
225 'type' => 'check',
226 'default' => 1
227 )
228 ),
229 'publish_notification_mode' => array(
230 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_mode',
231 'config' => array(
232 'type' => 'select',
233 'items' => array(
234 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
235 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
236 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
237 )
238 )
239 ),
240 'publish_notification_defaults' => array(
241 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_defaults',
242 'displayCond' => 'FIELD:publish_notification_mode:IN:0,1',
243 'config' => array(
244 'type' => 'group',
245 'internal_type' => 'db',
246 'allowed' => 'be_users,be_groups',
247 'prepend_tname' => 1,
248 'size' => '3',
249 'maxitems' => '100',
250 'autoSizeMax' => 20,
251 'show_thumbs' => '1',
252 'wizards' => array(
253 'suggest' => array(
254 'type' => 'suggest'
255 )
256 )
257 )
258 ),
259 'publish_allow_notificaton_settings' => array(
260 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_allow_notificaton_settings',
261 'config' => array(
262 'type' => 'check',
263 'default' => 1
264 )
265 )
266 ),
267 'types' => array(
268 '0' => array('showitem' => 'title,description,
269 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.users,adminusers,members,
270 --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,
271 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
272 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
273 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,custom_stages,
274 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.other,freeze,live_edit,disable_autocreate,swap_modes,publish_access')
275 )
276 );