Project

General

Profile

Actions

Bug #77896

closed

FSC Uploads target="_blank" didn't work

Added by Samuel Heinz about 8 years ago. Updated about 6 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 about 8 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 about 8 years ago

  • Assignee deleted (Gianluigi Martino)
Actions #3

Updated by Gerrit Code Review about 8 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 about 8 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 about 8 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 about 8 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF