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