Project

General

Profile

Actions

Bug #84942

closed

target _blank is beeing ignored on CType "images" with recordLinks

Added by Webadmin no-lastname-given almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-05-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

We configured the recordLinks to support links to a custom extension:

config.recordLinks {
    linkcounter {
       typolink {
           parameter = 1396
           additionalParams = &tx_ffhlinkcounter_pi1[link]={field:uid}&tx_ffhlinkcounter_pi1[linkname]={field:uid}&type=1310
           additionalParams.insertData = 1
           useCacheHash = 1
        } 
    }
}

It's working fine, but as soon as we set a typolink with _blank on an tt_content Item "Images" or "Text with Images", the _blank will be ignored.

Adding

target.data = parameters:target
extTarget.override.data = parameters:target

to the config solves the problem for "Text with Images" but the target-Attribute is still missing for "Images".

On any other Links (i.e. RTE Links) the target="_blank" is rendered as expected.


Files

link.PNG (26.2 KB) link.PNG Webadmin no-lastname-given, 2018-05-07 12:34

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #81620: Linkhandler remove all attributes set in the link wizard and the templateClosed2017-06-19

Actions
Actions #1

Updated by Elena Bartolotti almost 6 years ago

  • Related to Bug #81620: Linkhandler remove all attributes set in the link wizard and the template added
Actions #2

Updated by Elena Bartolotti almost 6 years ago

Same problem for me, workarounded with VHS, estracting target from file.link value

<v:condition.string.contains condition="1" haystack="{file.link}" needle="_blank">
    <f:then>
        <f:link.typolink parameter="{file.link}" additionalAttributes="{title:'{file.title}' , target:'_blank'}" >
            <f:render partial="Media/Rendering/Image" arguments="{file: file, data: data, settings: settings}" />
        </f:link.typolink>
    </f:then>
</v:condition.string.contains>
Actions #3

Updated by Riccardo De Contardi over 5 years ago

  • Status changed from New to Needs Feedback

As #81620 has been marked as resolved, could you please test if this issue has been solved, too (see https://review.typo3.org/#/c/57883/ )? Thank you!

Actions #4

Updated by Webadmin no-lastname-given over 5 years ago

Can confirm that it is now working for links built in Fluid, etc. Thanks for the fix!

But it is still not working for CSS Styled Content Type "Images" and "Text / Images".

Actions #5

Updated by Riccardo De Contardi over 5 years ago

  • Status changed from Needs Feedback to Closed

Thank you for your feedback!

We are sorry, but Css_Styled_Content has been marked as deprecated on version 8.7 and removed on version 9, so it is unlikely that it will be fixed for CSC, too; therefore I close this ticket for now; please feel free to reopen it if you think that it is the wrong decision or ping me.

Thank you.

Actions

Also available in: Atom PDF