Project

General

Profile

Actions

Feature #75572

closed

Filetype icons - add missing common filetype icons

Added by Carla Froitzheim over 8 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Frontend
Start date:
2016-04-13
Due date:
% Done:

0%

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

Description

In file links with view file name and file extension icon there are missing icons, e.g. mp4, docx .... (didnĀ“t test all file types)


Files

filelinks_icons.jpg (139 KB) filelinks_icons.jpg Carla Froitzheim, 2016-05-22 16:25

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Task #71225: Use IconFactory for file-icons in the frontendClosedBenni Mack2015-10-31

Actions
Related to TYPO3 Core - Feature #93780: New File Icons for UploadsAcceptedBenjamin Kott2021-03-19

Actions
Related to TYPO3 Core - Task #94952: Additional File-Links iconsClosed2021-08-21

Actions
Actions #1

Updated by Riccardo De Contardi over 8 years ago

  • Status changed from New to Needs Feedback

Hello.
Can you tell us more about how to reproduce your problem? What steps did you follow? Do you use Css Styled Content? Fluid Styled Content? Could you attach a screenshot? Thank you

Actions #2

Updated by Carla Froitzheim over 8 years ago

I am using FSC. I use the content element file links and under appearance in the drop down "Display file/icon/thumbnail" I use "file name and file extension icon". In one case I have a file collection type folder from storage, in the second case I have a file collection type static collection of files. I noticed that some icons (tested mp4 and docx) seem to be missing, see screenshot.

Actions #3

Updated by Riccardo De Contardi over 8 years ago

I think that the problem is: there is no icon for those file extension. If I understand correctly, the icons are located on /typo3/sysext/frontend/Resources/Public/Icons/FileIcons/

the FSC template Uploads.html reads:

<f:if condition="{data.uploads_type} == 1">
    <img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
</f:if>

(and there is a similar section below for data.uploads_type=2)

as far as I can see there is no fallback to use default.gif for unrecognized file types.

My suggestion is to modify the template and use a set of icons of yours (I would better use CSS and a sprite).

Otherwise, if you agree, I would change this issue title to "Filetype icons - add missing common filetype icons" and tracker to "Feature"... the problem is that there will for sure be debate about what file extension should be considered "common" enough to include, I think. The fallback for unrecognized filetype icons would be a nice add, but I don't know if it would be possible in FSC.

(BTW: that would be possible using CSS)

Actions #4

Updated by Carla Froitzheim over 8 years ago

I agree to change the issue title and tracker to feature.

Actions #5

Updated by Riccardo De Contardi over 8 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Icons missing in file links with icon view to Filetype icons - add missing common filetype icons
  • Category set to Frontend
  • Status changed from Needs Feedback to New
  • Priority changed from Should have to Could have
  • Target version set to Candidate for Major Version

As agreed with the author of the issue, I change this issue into "feature"
The main topics related to this feature are:

- add "common" filetype icons (To be decided: what are the "common" ones)
- add a "fallback" feature: the unrecognized file types should have the "default.gif" icon, even with FSC. as far as now, there is no such fallback
- explore the possibility of using a sprite for the icons and pure CSS background-image icons, related to the file extension.

Actions #6

Updated by Marco Huber almost 8 years ago

There is a nice patch which uses the icons in typo3/sysext/core/Resources/Public/Icons/T3Icons/mimetypes, but sadly the patch was abandoned: https://review.typo3.org/#/c/44464/
But the viewhelper in this patch works, so you could use it in your own theme extension.

Actions #7

Updated by Riccardo De Contardi over 3 years ago

Actions #8

Updated by Riccardo De Contardi over 3 years ago

  • Related to Task #94952: Additional File-Links icons added
Actions #9

Updated by Georg Ringer 6 months ago

  • Status changed from New to Closed

closed in favor of #93780 - I totally agree that the icons need to have a better look and need to be updated

Actions

Also available in: Atom PDF