[BUGFIX] Render previews for all files in FSCs upload CE 81/45081/2
authorDaniel Goerz <ervaude@gmail.com>
Wed, 2 Dec 2015 09:08:37 +0000 (10:08 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 2 Dec 2015 20:47:34 +0000 (21:47 +0100)
Change-Id: I418e2985efb11a3074cf9ee15935b3274c316165
Resolves: #71994
Releases: master
Reviewed-on: https://review.typo3.org/45081
Reviewed-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/fluid_styled_content/Resources/Private/Templates/Uploads.html

index d50ff35..4d2ade1 100644 (file)
@@ -13,7 +13,7 @@
                                                <f:if condition="{f:uri.image(src: 'file:{f:if(condition: file.originalFile, then: \'file:{file.originalFile.uid}\', else: \'file:{file.uid}\')}')} != '/'">
                                                        <f:then>
                                                                <a href="{file.publicUrl}">
-                                                                       <f:image src="{file.uid}" treatIdAsReference="{f:if(condition: file.originalFile, then: '1', else: '0')}" width="150" alt="{file.properties.alternative}" />
+                                                                       <f:media file="{file}" width="150" alt="{file.properties.alternative}" />
                                                                </a>
                                                        </f:then>
                                                        <f:else>