Issue Feature Closed

#97821Option to configure Default Icons / Additional Icons in File List

Christoph Runkel 06/29/22, 09:43 updated 10/04/22, 08:39

Description

Small Change but great Effect. It would be great if we could configure the Icons that are displayed in the list view by Standard or on Click “…”.

Problem is that many users do not recognize the Replace button in the additional options which is very important for correct FAL use.

Change would look something like this:

In user(group) tsconfig set up something like this:

options.file_list.defaultIcons = view,metadata,copy,cut,translations,delete

typo3/sysext/filelist/Classes/FileList.php Line 1129

OLD:

        if (in_array($key, ['view', 'metadata', 'translations', 'delete'])) {
                $output .= $action;
                continue;
            }

NEW:

        foreach ($cells as $key => $action) {

            $defaultIcons = array('view', 'metadata', 'translations', 'delete');
            $userTsConfig = $GLOBALS['BE_USER']->getTSConfig();
            if($userTsConfig['options.']['file_list.']['defaultIcons'])
            {
                $defaultIcons =explode(",", $userTsConfig['options.']['file_list.']['defaultIcons'])  ;
                $defaultIcons = array_map('trim', $defaultIcons);
            }           

            if (in_array($key, $defaultIcons )) {
                $output .= $action;
                continue;
            }

Reviews 1