[FEATURE] Introduce TCA > ctrl > descriptionColumn
[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_move', 'moveFile', 'mimetypes-other-other'),
125 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
126 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
127 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
128 ),
129 'renderMode' => 'checkbox',
130 'size' => 17,
131 'maxitems' => 17,
132 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
133 )
134 ),
135 'workspace_perms' => array(
136 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
137 'config' => array(
138 'type' => 'check',
139 'items' => array(
140 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
141 ),
142 'default' => 0
143 )
144 ),
145 'pagetypes_select' => array(
146 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.pagetypes_select',
147 'config' => array(
148 'type' => 'select',
149 'special' => 'pagetypes',
150 'size' => '5',
151 'autoSizeMax' => 50,
152 'maxitems' => 20,
153 'renderMode' => 'checkbox',
154 'iconsInOptionTags' => 1
155 )
156 ),
157 'tables_modify' => array(
158 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_modify',
159 'config' => array(
160 'type' => 'select',
161 'special' => 'tables',
162 'size' => '5',
163 'autoSizeMax' => 50,
164 'maxitems' => 100,
165 'renderMode' => 'checkbox',
166 'iconsInOptionTags' => 1
167 )
168 ),
169 'tables_select' => array(
170 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_select',
171 'config' => array(
172 'type' => 'select',
173 'special' => 'tables',
174 'size' => '5',
175 'autoSizeMax' => 50,
176 'maxitems' => 100,
177 'renderMode' => 'checkbox',
178 'iconsInOptionTags' => 1
179 )
180 ),
181 'non_exclude_fields' => array(
182 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.non_exclude_fields',
183 'config' => array(
184 'type' => 'select',
185 'special' => 'exclude',
186 'size' => '25',
187 'maxitems' => 1000,
188 'autoSizeMax' => 50,
189 'renderMode' => 'checkbox'
190 )
191 ),
192 'explicit_allowdeny' => array(
193 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.explicit_allowdeny',
194 'config' => array(
195 'type' => 'select',
196 'special' => 'explicitValues',
197 'maxitems' => 1000,
198 'renderMode' => 'checkbox'
199 )
200 ),
201 'allowed_languages' => array(
202 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
203 'config' => array(
204 'type' => 'select',
205 'special' => 'languages',
206 'maxitems' => 1000,
207 'renderMode' => 'checkbox'
208 )
209 ),
210 'custom_options' => array(
211 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.custom_options',
212 'config' => array(
213 'type' => 'select',
214 'special' => 'custom',
215 'maxitems' => 1000,
216 'renderMode' => 'checkbox'
217 )
218 ),
219 'hidden' => array(
220 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
221 'config' => array(
222 'type' => 'check',
223 'default' => '0'
224 )
225 ),
226 'lockToDomain' => array(
227 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
228 'config' => array(
229 'type' => 'input',
230 'size' => '20',
231 'eval' => 'trim',
232 'max' => '50',
233 'softref' => 'substitute'
234 )
235 ),
236 'groupMods' => array(
237 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
238 'config' => array(
239 'type' => 'select',
240 'special' => 'modListGroup',
241 'size' => '5',
242 'autoSizeMax' => 50,
243 'maxitems' => 100,
244 'renderMode' => 'checkbox',
245 'iconsInOptionTags' => 1
246 )
247 ),
248 'description' => array(
249 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
250 'config' => array(
251 'type' => 'text',
252 'rows' => 5,
253 'cols' => 30,
254 'max' => '2000',
255 )
256 ),
257 'TSconfig' => array(
258 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
259 'config' => array(
260 'type' => 'text',
261 'cols' => '40',
262 'rows' => '5',
263 'softref' => 'TSconfig'
264 ),
265 'defaultExtras' => 'fixed-font : enable-tab'
266 ),
267 'hide_in_lists' => array(
268 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.hide_in_lists',
269 'config' => array(
270 'type' => 'check',
271 'default' => 0
272 )
273 ),
274 'subgroup' => array(
275 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.subgroup',
276 'config' => array(
277 'type' => 'select',
278 'foreign_table' => 'be_groups',
279 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
280 'size' => '5',
281 'autoSizeMax' => 50,
282 'maxitems' => 20,
283 'iconsInOptionTags' => 1
284 )
285 ),
286 'category_perms' => array(
287 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
288 'config' => array(
289 'type' => 'select',
290 'foreign_table' => 'sys_category',
291 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
292 'renderMode' => 'tree',
293 'treeConfig' => array(
294 'parentField' => 'parent',
295 'appearance' => array(
296 'expandAll' => FALSE,
297 'showHeader' => FALSE,
298 'maxLevels' => 99,
299 ),
300 ),
301 'size' => 10,
302 'autoSizeMax' => 20,
303 'minitems' => 0,
304 'maxitems' => 9999
305 )
306 )
307 ),
308 'types' => array(
309 '0' => array('showitem' => 'hidden, title, description, subgroup,
310 --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,
311 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.mounts_and_workspaces, workspace_perms, db_mountpoints, file_mountpoints, file_permissions, category_perms,
312 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.options, lockToDomain, hide_in_lists, TSconfig,
313 --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.extended'),
314 )
315 );