[BUGFIX] Add title tag to anchor in Fluid Styled Content uploads 29/54329/2
authorBenni Mack <benni@typo3.org>
Thu, 5 Oct 2017 06:48:36 +0000 (08:48 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 9 Oct 2017 06:41:06 +0000 (08:41 +0200)
Resolves: #81990
Releases: master, 8.7
Change-Id: Id52849587f3ad438d65f48d01a8930a646829dd4
Reviewed-on: https://review.typo3.org/54329
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/fluid_styled_content/Resources/Private/Templates/Uploads.html

index 3d52c6c..8ca71c4 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}" {f:if(condition:data.target,then: ' target="{data.target}"')}>
+                                                               <a href="{file.publicUrl}" {f:if(condition:data.target,then: ' target="{data.target}"')}{f:if(condition: file.title, then: ' title="{file.title}"')}>
                                                                        <f:media file="{file}" width="150" alt="{file.properties.alternative}" />
                                                                </a>
                                                        </f:then>
@@ -22,7 +22,7 @@
                                                </f:if>
                                        </f:if>
                                        <div>
-                                               <a href="{file.publicUrl}" {f:if(condition:data.target,then: ' target="{data.target}"')}>
+                                               <a href="{file.publicUrl}" {f:if(condition:data.target,then: ' target="{data.target}"')}{f:if(condition: file.title, then: ' title="{file.title}"')}>
                                                        <span class="ce-uploads-fileName">{f:if(condition: file.properties.title, then: file.properties.title, else: file.name) -> f:format.htmlspecialchars()}</span>
                                                </a>
                                                <f:if condition="{file.properties.description}">