Project

General

Profile

Actions

Bug #83445

closed

Fluid Styled Content > Templates > Uploads: Previews won't displayed. Solution: condition with proper field

Added by Dirk Wildt over 6 years ago. Updated over 6 years ago.

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 #1

Updated by Dirk Wildt over 6 years ago

Bug report is wrong and obsolete!

There isn't any bug.

Please delete this post.

Sorry for circumstances.

Kind regards
Dirk

Actions #2

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from New to Closed

No problem, closed. Thank you for your quick answer.

Actions

Also available in: Atom PDF