[BUGFIX] Support target in ctype uploads and fluid_styled_content 37/49937/3
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:14:10 +0000 (10:14 +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/49937
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Riccardo De Contardi <erredeco@gmail.com>
Tested-by: Riccardo De Contardi <erredeco@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 0cf95d9..75cd846 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>
@@ -23,7 +23,7 @@
                                        </f:if>
 
                                        <div>
-                                               <a href="{file.publicUrl}">
+                                               <a href="{file.publicUrl}"{f:if(condition:data.target,then:' target="{data.target}"')}>
                                                        <span class="ce-uploads-fileName">
                                                                <f:if condition="{file.title}">
                                                                        <f:then>