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