947ca4700d28eede16f592c8854ef9651a2fa941
[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 'edit_notification_mode' => array(
183 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_mode',
184 'config' => array(
185 'type' => 'select',
186 'items' => array(
187 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
188 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
189 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
190 )
191 )
192 ),
193 'edit_notification_defaults' => array(
194 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_notification_defaults',
195 'displayCond' => 'FIELD:edit_notification_mode:IN:0,1',
196 'config' => array(
197 'type' => 'group',
198 'internal_type' => 'db',
199 'allowed' => 'be_users,be_groups',
200 'prepend_tname' => 1,
201 'size' => '3',
202 'maxitems' => '100',
203 'autoSizeMax' => 20,
204 'show_thumbs' => '1',
205 'wizards' => array(
206 'suggest' => array(
207 'type' => 'suggest'
208 )
209 )
210 )
211 ),
212 'edit_allow_notificaton_settings' => array(
213 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.edit_allow_notificaton_settings',
214 'config' => array(
215 'type' => 'check',
216 'default' => 1
217 )
218 ),
219 'publish_notification_mode' => array(
220 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_mode',
221 'config' => array(
222 'type' => 'select',
223 'items' => array(
224 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.0', 0),
225 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.1', 1),
226 array('LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.notification_mode.2', 2)
227 )
228 )
229 ),
230 'publish_notification_defaults' => array(
231 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_notification_defaults',
232 'displayCond' => 'FIELD:publish_notification_mode:IN:0,1',
233 'config' => array(
234 'type' => 'group',
235 'internal_type' => 'db',
236 'allowed' => 'be_users,be_groups',
237 'prepend_tname' => 1,
238 'size' => '3',
239 'maxitems' => '100',
240 'autoSizeMax' => 20,
241 'show_thumbs' => '1',
242 'wizards' => array(
243 'suggest' => array(
244 'type' => 'suggest'
245 )
246 )
247 )
248 ),
249 'publish_allow_notificaton_settings' => array(
250 'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.publish_allow_notificaton_settings',
251 'config' => array(
252 'type' => 'check',
253 'default' => 1
254 )
255 )
256 ),
257 'types' => array(
258 '0' => array('showitem' => 'title,description,
259 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.users,adminusers,members,
260 --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,
261 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.mountpoints,db_mountpoints,file_mountpoints,
262 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.publishing,publish_time,unpublish_time,
263 --div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_filemounts.tabs.staging,custom_stages,
264 --div--;LLL:EXT:lang/locallang_tca.xlf:sys_filemounts.tabs.other,freeze,live_edit,swap_modes,publish_access')
265 )
266 );