#83445Fluid Styled Content > Templates > Uploads: Previews won't displayed. Solution: condition with proper field
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.