Project

General

Profile

Actions

Task #56211

closed

General getSpriteIcon method for files and folders is missing

Added by Frans Saris almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Backend User Interface
Target version:
-
Start date:
2014-02-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

There is a general function to create a icon for a record. But there is no general function for creating a icon for a resource (file/folder).
With the introduction of FAL a the files and folders are object and so there is more info then just a name/extension to determine the right icon.
And with file_metadata you have the possibility to even add more info to a file (access rights etc) so it would be a nice addition if extensions could hook into the icon rendering and add overlays when needed.

My suggestion is to create a general function to create the icons for resources and implement a hook there so extensions can change the icon when needed and/or add overlays.

something like IconUtility::getSpriteIconForResource()


Related issues 1 (0 open1 closed)

Blocks TYPO3 Core - Bug #56251: Icon in folder/file info pop-up is wrongClosed2014-02-24

Actions
Actions

Also available in: Atom PDF