Project

General

Profile

Actions

Bug #77896

closed

FSC Uploads target="_blank" didn't work

Added by Samuel Heinz over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-09-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

TYPO3: 7.6.10
If target="_blank" ist selected in options the attribute isn't available in Fluid Template uploads.html

Should be something like that:


<f:if condition="{data.target}">
    <f:then>
        <a href="{file.publicUrl}" target="_blank">
    </f:then>
    <f:else>
        <a href="{file.publicUrl}">
    </f:else>
</f:if>

Actions #1

Updated by Riccardo De Contardi over 7 years ago

Maybe it's better:

<f:if condition="{data.target}">
    <f:then>
        <a href="{file.publicUrl}" target="{data.target}">
    </f:then>
    <f:else>
        <a href="{file.publicUrl}">
    </f:else>
</f:if>

or

 <a href="{file.publicUrl}"  {f:if(condition:data.target , then: 'target=\"{data.target}\"')} >

(I don't know if this one is fully correct, I wrote in a hurry)

Actions #2

Updated by Wouter Wolters over 7 years ago

  • Assignee deleted (Gianluigi Martino)
Actions #3

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49937

Actions #4

Updated by Gerrit Code Review over 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49937

Actions #5

Updated by Gerrit Code Review over 7 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49987

Actions #6

Updated by Georg Ringer over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF