Project

General

Profile

Actions

Feature #97821

closed

Option to configure Default Icons / Additional Icons in File List

Added by Christoph Runkel over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2022-06-29
Due date:
% Done:

100%

Estimated time:
PHP Version:
7.4
Tags:
Complexity:
easy
Sprint Focus:

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;
            }
Actions

Also available in: Atom PDF