[BUGFIX] Support target in ctype uploads and fluid_styled_content 87/49987/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 14 Sep 2016 06:13:01 +0000 (08:13 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 21 Sep 2016 08:19:49 +0000 (10:19 +0200)
The target configuration of the filelink plugin must be considered
if using fluid_styled_content.

Resolves: #77896
Releases: master, 7.6
Change-Id: Ie2ebc8cf425b86082b8bd1062f231d8c3b544b01
Reviewed-on: https://review.typo3.org/49987
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 4d2ade1..caf0b3c 100644 (file)
@@ -12,7 +12,7 @@
                                        <f:if condition="{data.uploads_type} == 2">
                                                <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}">
+                                                               <a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
                                                                        <f:media file="{file}" width="150" alt="{file.properties.alternative}" />
                                                                </a>
                                                        </f:then>
@@ -24,7 +24,7 @@
 
                                        <div>
                                                <f:if condition="{file.name}">
-                                                       <a href="{file.publicUrl}">
+                                                       <a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
                                                                <span class="ce-uploads-fileName">
                                                                        {file.name}
                                                                </span>