[BUGFIX] Set correct file extensions in ['SYS']['mediafile_ext']
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_groups.php
index 201c749..c4b3ccd 100644 (file)
@@ -2,37 +2,32 @@
 return array(
        'ctrl' => array(
                'label' => 'title',
+               'descriptionColumn' => 'description',
                'tstamp' => 'tstamp',
                'crdate' => 'crdate',
                'cruser_id' => 'cruser_id',
                'delete' => 'deleted',
                'default_sortby' => 'ORDER BY title',
-               'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
+               'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xlf:LGL.prependAtCopy',
                'adminOnly' => 1,
                'rootLevel' => 1,
-               'type' => 'inc_access_lists',
-               'typeicon_column' => 'inc_access_lists',
-               'typeicons' => array(
-                       '1' => 'be_groups_lists.gif'
-               ),
                'typeicon_classes' => array(
                        'default' => 'status-user-group-backend'
                ),
                'enablecolumns' => array(
                        'disabled' => 'hidden'
                ),
-               'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups',
-               'useColumnsForDefaultValues' => 'lockToDomain, fileoper_perms',
-               'dividers2tabs' => TRUE,
+               'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups',
+               'useColumnsForDefaultValues' => 'lockToDomain, file_permissions',
                'versioningWS_alwaysAllowLiveEdit' => TRUE,
                'searchFields' => 'title'
        ),
        'interface' => array(
-               'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, fileoper_perms, inc_access_lists, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description'
+               'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, file_permissions, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description'
        ),
        'columns' => array(
                'title' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.title',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.title',
                        'config' => array(
                                'type' => 'input',
                                'size' => '25',
@@ -41,13 +36,13 @@ return array(
                        )
                ),
                'db_mountpoints' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:db_mountpoints',
                        'config' => array(
                                'type' => 'group',
                                'internal_type' => 'db',
                                'allowed' => 'pages',
                                'size' => '3',
-                               'maxitems' => 25,
+                               'maxitems' => 100,
                                'autoSizeMax' => 10,
                                'show_thumbs' => '1',
                                'wizards' => array(
@@ -58,124 +53,141 @@ return array(
                        )
                ),
                'file_mountpoints' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints',
                        'config' => array(
                                'type' => 'select',
                                'foreign_table' => 'sys_filemounts',
                                'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
                                'size' => '3',
-                               'maxitems' => 25,
+                               'maxitems' => 100,
                                'autoSizeMax' => 10,
-                               'iconsInOptionTags' => 1,
                                'wizards' => array(
-                                       '_PADDING' => 1,
                                        '_VERTICAL' => 1,
                                        'edit' => array(
                                                'type' => 'popup',
-                                               'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
-                                               'script' => 'wizard_edit.php',
+                                               'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
+                                               'module' => array(
+                                                       'name' => 'wizard_edit',
+                                               ),
                                                'popup_onlyOpenIfSelected' => 1,
-                                               'icon' => 'edit2.gif',
-                                               'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
+                                               'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif',
+                                               'JSopenParams' => 'width=800,height=600,status=0,menubar=0,scrollbars=1'
                                        ),
                                        'add' => array(
                                                'type' => 'script',
-                                               'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
-                                               'icon' => 'add.gif',
+                                               'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
+                                               'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
                                                'params' => array(
                                                        'table' => 'sys_filemounts',
                                                        'pid' => '0',
                                                        'setValue' => 'prepend'
                                                ),
-                                               'script' => 'wizard_add.php'
+                                               'module' => array(
+                                                       'name' => 'wizard_add'
+                                               )
                                        ),
                                        'list' => array(
                                                'type' => 'script',
-                                               'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
-                                               'icon' => 'list.gif',
+                                               'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
+                                               'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif',
                                                'params' => array(
                                                        'table' => 'sys_filemounts',
                                                        'pid' => '0'
                                                ),
-                                               'script' => 'wizard_list.php'
+                                               'module' => array(
+                                                       'name' => 'wizard_list'
+                                               )
                                        )
                                )
                        )
                ),
-               'fileoper_perms' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms',
+               'file_permissions' => array(
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
                        'config' => array(
-                               'type' => 'check',
+                               'type' => 'select',
                                'items' => array(
-                                       array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_general', 0),
-                                       array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_unzip', 0),
-                                       array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms', 0),
-                                       array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_copy', 0),
-                                       array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_delete', 0)
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_replace', 'replaceFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
                                ),
-                               'default' => '7'
+                               'renderMode' => 'checkbox',
+                               'size' => 17,
+                               'maxitems' => 17,
+                               'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,replaceFile,moveFile,files_copy,deleteFile'
                        )
                ),
                'workspace_perms' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
                        'config' => array(
                                'type' => 'check',
                                'items' => array(
-                                       array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0)
+                                       array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
                                ),
                                'default' => 0
                        )
                ),
                'pagetypes_select' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.pagetypes_select',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.pagetypes_select',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'pagetypes',
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 20,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
-                               'iconsInOptionTags' => 1
+                               'renderMode' => 'checkbox',
                        )
                ),
                'tables_modify' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_modify',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_modify',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'tables',
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 100,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
-                               'iconsInOptionTags' => 1
+                               'renderMode' => 'checkbox',
                        )
                ),
                'tables_select' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_select',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.tables_select',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'tables',
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 100,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
-                               'iconsInOptionTags' => 1
+                               'renderMode' => 'checkbox',
                        )
                ),
                'non_exclude_fields' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.non_exclude_fields',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.non_exclude_fields',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'exclude',
                                'size' => '25',
                                'maxitems' => 1000,
                                'autoSizeMax' => 50,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
-                               'itemListStyle' => 'width:500px'
+                               'renderMode' => 'checkbox'
                        )
                ),
                'explicit_allowdeny' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.explicit_allowdeny',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'explicitValues',
@@ -184,7 +196,7 @@ return array(
                        )
                ),
                'allowed_languages' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'languages',
@@ -193,7 +205,7 @@ return array(
                        )
                ),
                'custom_options' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.custom_options',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'custom',
@@ -202,14 +214,14 @@ return array(
                        )
                ),
                'hidden' => array(
-                       'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
+                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
                        'config' => array(
                                'type' => 'check',
                                'default' => '0'
                        )
                ),
                'lockToDomain' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
                        'config' => array(
                                'type' => 'input',
                                'size' => '20',
@@ -219,61 +231,44 @@ return array(
                        )
                ),
                'groupMods' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
                        'config' => array(
                                'type' => 'select',
                                'special' => 'modListGroup',
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 100,
-                               'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
-                               'iconsInOptionTags' => 1
-                       )
-               ),
-               'inc_access_lists' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.inc_access_lists',
-                       'config' => array(
-                               'type' => 'check',
-                               'default' => '0'
+                               'renderMode' => 'checkbox',
                        )
                ),
                'description' => array(
-                       'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
+                       'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.description',
                        'config' => array(
                                'type' => 'text',
                                'rows' => 5,
-                               'cols' => 30
+                               'cols' => 30,
+                               'max' => '2000',
                        )
                ),
                'TSconfig' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
                        'config' => array(
                                'type' => 'text',
                                'cols' => '40',
                                'rows' => '5',
-                               'wizards' => array(
-                                       '_PADDING' => 4,
-                                       '0' => array(
-                                               'type' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tsconfig_help') ? 'popup' : '',
-                                               'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
-                                               'script' => 'wizard_tsconfig.php?mode=beuser',
-                                               'icon' => 'wizard_tsconfig.gif',
-                                               'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1'
-                                       )
-                               ),
                                'softref' => 'TSconfig'
                        ),
                        'defaultExtras' => 'fixed-font : enable-tab'
                ),
                'hide_in_lists' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.hide_in_lists',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.hide_in_lists',
                        'config' => array(
                                'type' => 'check',
                                'default' => 0
                        )
                ),
                'subgroup' => array(
-                       'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.subgroup',
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.subgroup',
                        'config' => array(
                                'type' => 'select',
                                'foreign_table' => 'be_groups',
@@ -281,21 +276,35 @@ return array(
                                'size' => '5',
                                'autoSizeMax' => 50,
                                'maxitems' => 20,
-                               'iconsInOptionTags' => 1
+                       )
+               ),
+               'category_perms' => array(
+                       'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
+                       'config' => array(
+                               'type' => 'select',
+                               'foreign_table' => 'sys_category',
+                               'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
+                               'renderMode' => 'tree',
+                               'treeConfig' => array(
+                                       'parentField' => 'parent',
+                                       'appearance' => array(
+                                               'expandAll' => FALSE,
+                                               'showHeader' => FALSE,
+                                               'maxLevels' => 99,
+                                       ),
+                               ),
+                               'size' => 10,
+                               'autoSizeMax' => 20,
+                               'minitems' => 0,
+                               'maxitems' => 9999
                        )
                )
        ),
        'types' => array(
-               '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, fileoper_perms,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'),
-               '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3,
-                       --div--;LLL:EXT:lang/locallang_tca.xml: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,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, fileoper_perms,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3,
-                       --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended')
+               '0' => array('showitem' => 'hidden, title, description, subgroup,
+                       --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,
+                       --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.mounts_and_workspaces, workspace_perms, db_mountpoints, file_mountpoints, file_permissions, category_perms,
+                       --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.options, lockToDomain, hide_in_lists, TSconfig,
+                       --div--;LLL:EXT:lang/locallang_tca.xlf:be_groups.tabs.extended'),
        )
 );
-?>
\ No newline at end of file