Actions
Task #56211
closedGeneral getSpriteIcon method for files and folders is missing
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()
Actions