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