Actions
Bug #83445
closedFluid Styled Content > Templates > Uploads: Previews won't displayed. Solution: condition with proper field
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-12-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Error description:
- Content Element "File Links" does not render any preview.
Cause:
- It seems, that the fluid template is using a condition with a non existing field.
File:
- typo3/sysext/fluid_styled_content/Resources/Private/Templates/Uploads.html
Code:
Original code:
...
<f:if condition="{data.uploads_type} == 1">
<img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
</f:if>
<f:if condition="{data.uploads_type} == 2">
..
Fixed code:
If uploads_type is moved to layout, preview will displayed in the frontend, if user has selected layout 1 or 2.
This is the same behaviour like in TYPO3 7.6.
...
<f:if condition="{data.layout} == 1">
<img src="{f:uri.resource(path: 'Icons/FileIcons/{file.extension}.gif', extensionName: 'frontend')}" alt="">
</f:if>
<f:if condition="{data.layout} == 2">
..
Kind regards
Dirk
Actions