Actions
Feature #90138
closedLanguage and mode (free or connected) should be handled in the links module when creating an anchor to content
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-01-16
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
translation, localization
Complexity:
Sprint Focus:
Description
Hello,
In a page translated with the free mode (so the translated contents are not related to original contents), when I'm in the translated language, I want to create a link to a translated content via the link module, but I only get the original content list in a page.
I think that it should list the translated contents only when the page is in free mode, but the original contents when the page is in connected mode.
Here is a workaround for those who have the same problem :
I used the linkHandler functionality with
this tsconfig:
TCEMAIN.linkHandler.anchors { handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler label = Anchors configuration { table = tt_content } scanBefore = page }
and this typoscript :
config.recordLinks.anchors { // Do not force link generation when the record is hidden forceLink = 0 typolink { parameter = current parameter.dataWrap = |#{field:uid} } }
It does the job for the moment without coding anything, but I would prefer that the native tab listing contents handle the languages context.
Cheers,
Rachel
Actions