Bug #84942
closedtarget _blank is beeing ignored on CType "images" with recordLinks
0%
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
Updated by Elena Bartolotti over 6 years ago
- Related to Bug #81620: Linkhandler remove all attributes set in the link wizard and the template added
Updated by Elena Bartolotti over 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>
Updated by Riccardo De Contardi over 6 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!
Updated by Webadmin no-lastname-given over 6 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".
Updated by Riccardo De Contardi over 6 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.