[TASK] Use new way to register add 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 'script' => 'wizard_list.php'
105 )
106 )
107 )
108 ),
109 'file_permissions' => array(
110 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
111 'config' => array(
112 'type' => 'select',
113 'items' => array(
114 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
115 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
116 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
117 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
118 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
119 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
120 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
121 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
122 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'folder_recursivedelete', 'apps-filetree-folder-default'),
123 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
124 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
125 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
126 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
127 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_upload', 'files_upload', 'mimetypes-other-other'),
128 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
129 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
130 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
131 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
132 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
133 ),
134 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
135 'size' => 16,
136 'maxitems' => 16,
137 'itemListStyle' => 'width:500px',
138 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
139 )
140 ),
141 'workspace_perms' => array(
142 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
143 'config' => array(
144 'type' => 'check',
145 'items' => array(
146 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
147 ),
148 'default' => 0
149 )
150 ),
151 'pagetypes_select' => array(
152 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.pagetypes_select',
153 'config' => array(
154 'type' => 'select',
155 'special' => 'pagetypes',
156 'size' => '5',
157 'autoSizeMax' => 50,
158 'maxitems' => 20,
159 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
160 'iconsInOptionTags' => 1
161 )
162 ),
163 'tables_modify' => array(
164 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_modify',
165 'config' => array(
166 'type' => 'select',
167 'special' => 'tables',
168 'size' => '5',
169 'autoSizeMax' => 50,
170 'maxitems' => 100,
171 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
172 'iconsInOptionTags' => 1
173 )
174 ),
175 'tables_select' => array(
176 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_select',
177 'config' => array(
178 'type' => 'select',
179 'special' => 'tables',
180 'size' => '5',
181 'autoSizeMax' => 50,
182 'maxitems' => 100,
183 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
184 'iconsInOptionTags' => 1
185 )
186 ),
187 'non_exclude_fields' => array(
188 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.non_exclude_fields',
189 'config' => array(
190 'type' => 'select',
191 'special' => 'exclude',
192 'size' => '25',
193 'maxitems' => 1000,
194 'autoSizeMax' => 50,
195 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
196 'itemListStyle' => 'width:500px'
197 )
198 ),
199 'explicit_allowdeny' => array(
200 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.explicit_allowdeny',
201 'config' => array(
202 'type' => 'select',
203 'special' => 'explicitValues',
204 'maxitems' => 1000,
205 'renderMode' => 'checkbox'
206 )
207 ),
208 'allowed_languages' => array(
209 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
210 'config' => array(
211 'type' => 'select',
212 'special' => 'languages',
213 'maxitems' => 1000,
214 'renderMode' => 'checkbox'
215 )
216 ),
217 'custom_options' => array(
218 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.custom_options',
219 'config' => array(
220 'type' => 'select',
221 'special' => 'custom',
222 'maxitems' => 1000,
223 'renderMode' => 'checkbox'
224 )
225 ),
226 'hidden' => array(
227 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
228 'config' => array(
229 'type' => 'check',
230 'default' => '0'
231 )
232 ),
233 'lockToDomain' => array(
234 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
235 'config' => array(
236 'type' => 'input',
237 'size' => '20',
238 'eval' => 'trim',
239 'max' => '50',
240 'softref' => 'substitute'
241 )
242 ),
243 'groupMods' => array(
244 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
245 'config' => array(
246 'type' => 'select',
247 'special' => 'modListGroup',
248 'size' => '5',
249 'autoSizeMax' => 50,
250 'maxitems' => 100,
251 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
252 'iconsInOptionTags' => 1
253 )
254 ),
255 'inc_access_lists' => array(
256 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.inc_access_lists',
257 'config' => array(
258 'type' => 'check',
259 'default' => '0'
260 )
261 ),
262 'description' => array(
263 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
264 'config' => array(
265 'type' => 'text',
266 'rows' => 5,
267 'cols' => 30
268 )
269 ),
270 'TSconfig' => array(
271 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
272 'config' => array(
273 'type' => 'text',
274 'cols' => '40',
275 'rows' => '5',
276 'softref' => 'TSconfig'
277 ),
278 'defaultExtras' => 'fixed-font : enable-tab'
279 ),
280 'hide_in_lists' => array(
281 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.hide_in_lists',
282 'config' => array(
283 'type' => 'check',
284 'default' => 0
285 )
286 ),
287 'subgroup' => array(
288 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.subgroup',
289 'config' => array(
290 'type' => 'select',
291 'foreign_table' => 'be_groups',
292 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
293 'size' => '5',
294 'autoSizeMax' => 50,
295 'maxitems' => 20,
296 'iconsInOptionTags' => 1
297 )
298 ),
299 'category_perms' => array(
300 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
301 'config' => array(
302 'type' => 'select',
303 'foreign_table' => 'sys_category',
304 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
305 'renderMode' => 'tree',
306 'treeConfig' => array(
307 'parentField' => 'parent',
308 'appearance' => array(
309 'expandAll' => FALSE,
310 'showHeader' => FALSE,
311 'maxLevels' => 99,
312 ),
313 ),
314 'size' => 10,
315 'autoSizeMax' => 20,
316 'minitems' => 0,
317 'maxitems' => 9999
318 )
319 )
320 ),
321 'types' => array(
322 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
323 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1,
324 --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,
325 --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,
326 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.extended'),
327 '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
328 --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,
329 --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,
330 --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,
331 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.extended')
332 )
333 );