[TASK] Use new way to register list wizard
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_groups.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'title',
5 'tstamp' => 'tstamp',
6 'crdate' => 'crdate',
7 'cruser_id' => 'cruser_id',
8 'delete' => 'deleted',
9 'default_sortby' => 'ORDER BY title',
10 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
11 'adminOnly' => 1,
12 'rootLevel' => 1,
13 'type' => 'inc_access_lists',
14 'typeicon_column' => 'inc_access_lists',
15 'typeicons' => array(
16 '1' => 'be_groups_lists.gif'
17 ),
18 'typeicon_classes' => array(
19 'default' => 'status-user-group-backend'
20 ),
21 'enablecolumns' => array(
22 'disabled' => 'hidden'
23 ),
24 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups',
25 'useColumnsForDefaultValues' => 'lockToDomain, file_permissions',
26 'dividers2tabs' => TRUE,
27 'versioningWS_alwaysAllowLiveEdit' => TRUE,
28 'searchFields' => 'title'
29 ),
30 'interface' => array(
31 'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, file_permissions, inc_access_lists, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description'
32 ),
33 'columns' => array(
34 'title' => array(
35 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.title',
36 'config' => array(
37 'type' => 'input',
38 'size' => '25',
39 'max' => '50',
40 'eval' => 'trim,required'
41 )
42 ),
43 'db_mountpoints' => array(
44 'label' => 'LLL:EXT:lang/locallang_tca.xlf:db_mountpoints',
45 'config' => array(
46 'type' => 'group',
47 'internal_type' => 'db',
48 'allowed' => 'pages',
49 'size' => '3',
50 'maxitems' => 100,
51 'autoSizeMax' => 10,
52 'show_thumbs' => '1',
53 'wizards' => array(
54 'suggest' => array(
55 'type' => 'suggest'
56 )
57 )
58 )
59 ),
60 'file_mountpoints' => array(
61 'label' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints',
62 'config' => array(
63 'type' => 'select',
64 'foreign_table' => 'sys_filemounts',
65 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
66 'size' => '3',
67 'maxitems' => 100,
68 'autoSizeMax' => 10,
69 'iconsInOptionTags' => 1,
70 'wizards' => array(
71 '_PADDING' => 1,
72 '_VERTICAL' => 1,
73 'edit' => array(
74 'type' => 'popup',
75 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
76 'module' => array(
77 'name' => 'wizard_edit',
78 ),
79 'popup_onlyOpenIfSelected' => 1,
80 'icon' => 'edit2.gif',
81 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
82 ),
83 'add' => array(
84 'type' => 'script',
85 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
86 'icon' => 'add.gif',
87 'params' => array(
88 'table' => 'sys_filemounts',
89 'pid' => '0',
90 'setValue' => 'prepend'
91 ),
92 'module' => array(
93 'name' => 'wizard_add'
94 )
95 ),
96 'list' => array(
97 'type' => 'script',
98 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
99 'icon' => 'list.gif',
100 'params' => array(
101 'table' => 'sys_filemounts',
102 'pid' => '0'
103 ),
104 'module' => array(
105 'name' => 'wizard_list'
106 )
107 )
108 )
109 )
110 ),
111 'file_permissions' => array(
112 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
113 'config' => array(
114 'type' => 'select',
115 'items' => array(
116 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
117 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
118 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
119 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
120 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
121 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
122 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
123 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
124 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'folder_recursivedelete', 'apps-filetree-folder-default'),
125 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
126 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
127 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
128 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
129 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_upload', 'files_upload', 'mimetypes-other-other'),
130 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
131 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
132 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
133 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
134 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
135 ),
136 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
137 'size' => 16,
138 'maxitems' => 16,
139 'itemListStyle' => 'width:500px',
140 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
141 )
142 ),
143 'workspace_perms' => array(
144 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
145 'config' => array(
146 'type' => 'check',
147 'items' => array(
148 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
149 ),
150 'default' => 0
151 )
152 ),
153 'pagetypes_select' => array(
154 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.pagetypes_select',
155 'config' => array(
156 'type' => 'select',
157 'special' => 'pagetypes',
158 'size' => '5',
159 'autoSizeMax' => 50,
160 'maxitems' => 20,
161 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
162 'iconsInOptionTags' => 1
163 )
164 ),
165 'tables_modify' => array(
166 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_modify',
167 'config' => array(
168 'type' => 'select',
169 'special' => 'tables',
170 'size' => '5',
171 'autoSizeMax' => 50,
172 'maxitems' => 100,
173 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
174 'iconsInOptionTags' => 1
175 )
176 ),
177 'tables_select' => array(
178 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_select',
179 'config' => array(
180 'type' => 'select',
181 'special' => 'tables',
182 'size' => '5',
183 'autoSizeMax' => 50,
184 'maxitems' => 100,
185 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
186 'iconsInOptionTags' => 1
187 )
188 ),
189 'non_exclude_fields' => array(
190 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.non_exclude_fields',
191 'config' => array(
192 'type' => 'select',
193 'special' => 'exclude',
194 'size' => '25',
195 'maxitems' => 1000,
196 'autoSizeMax' => 50,
197 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
198 'itemListStyle' => 'width:500px'
199 )
200 ),
201 'explicit_allowdeny' => array(
202 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.explicit_allowdeny',
203 'config' => array(
204 'type' => 'select',
205 'special' => 'explicitValues',
206 'maxitems' => 1000,
207 'renderMode' => 'checkbox'
208 )
209 ),
210 'allowed_languages' => array(
211 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
212 'config' => array(
213 'type' => 'select',
214 'special' => 'languages',
215 'maxitems' => 1000,
216 'renderMode' => 'checkbox'
217 )
218 ),
219 'custom_options' => array(
220 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.custom_options',
221 'config' => array(
222 'type' => 'select',
223 'special' => 'custom',
224 'maxitems' => 1000,
225 'renderMode' => 'checkbox'
226 )
227 ),
228 'hidden' => array(
229 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
230 'config' => array(
231 'type' => 'check',
232 'default' => '0'
233 )
234 ),
235 'lockToDomain' => array(
236 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
237 'config' => array(
238 'type' => 'input',
239 'size' => '20',
240 'eval' => 'trim',
241 'max' => '50',
242 'softref' => 'substitute'
243 )
244 ),
245 'groupMods' => array(
246 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
247 'config' => array(
248 'type' => 'select',
249 'special' => 'modListGroup',
250 'size' => '5',
251 'autoSizeMax' => 50,
252 'maxitems' => 100,
253 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
254 'iconsInOptionTags' => 1
255 )
256 ),
257 'inc_access_lists' => array(
258 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.inc_access_lists',
259 'config' => array(
260 'type' => 'check',
261 'default' => '0'
262 )
263 ),
264 'description' => array(
265 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
266 'config' => array(
267 'type' => 'text',
268 'rows' => 5,
269 'cols' => 30
270 )
271 ),
272 'TSconfig' => array(
273 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
274 'config' => array(
275 'type' => 'text',
276 'cols' => '40',
277 'rows' => '5',
278 'softref' => 'TSconfig'
279 ),
280 'defaultExtras' => 'fixed-font : enable-tab'
281 ),
282 'hide_in_lists' => array(
283 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.hide_in_lists',
284 'config' => array(
285 'type' => 'check',
286 'default' => 0
287 )
288 ),
289 'subgroup' => array(
290 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.subgroup',
291 'config' => array(
292 'type' => 'select',
293 'foreign_table' => 'be_groups',
294 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
295 'size' => '5',
296 'autoSizeMax' => 50,
297 'maxitems' => 20,
298 'iconsInOptionTags' => 1
299 )
300 ),
301 'category_perms' => array(
302 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
303 'config' => array(
304 'type' => 'select',
305 'foreign_table' => 'sys_category',
306 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
307 'renderMode' => 'tree',
308 'treeConfig' => array(
309 'parentField' => 'parent',
310 'appearance' => array(
311 'expandAll' => FALSE,
312 'showHeader' => FALSE,
313 'maxLevels' => 99,
314 ),
315 ),
316 'size' => 10,
317 'autoSizeMax' => 20,
318 'minitems' => 0,
319 'maxitems' => 9999
320 )
321 )
322 ),
323 'types' => array(
324 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
325 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1,
326 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, file_permissions, category_perms,
327 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3,
328 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.extended'),
329 '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
330 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny , allowed_languages;;;;2-2-2, custom_options;;;;3-3-3,
331 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, file_permissions, category_perms,
332 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3,
333 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.extended')
334 )
335 );