Project

General

Profile

Actions

Feature #97821

closed

Option to configure Default Icons / Additional Icons in File List

Added by Christoph Runkel almost 2 years ago. Updated over 1 year 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 #1

Updated by Georg Ringer almost 2 years ago

  • Description updated (diff)
  • Target version changed from next-patchlevel to Candidate for Major Version
Actions #2

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #3

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #5

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #6

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #7

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #8

Updated by Gerrit Code Review over 1 year ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #9

Updated by Gerrit Code Review over 1 year ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75606

Actions #10

Updated by Shehfinaz Kadavil over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF