'Typo3 use of <f:link.page pageUid="xx" > in HTML content and typoscriptObjectPath
I want to use links with <f:link> in HTML element inside handler and in Typoscript with typoscriptObjectPath, for example:
<f:link.page pageUid="13" >Test Page Link</f:link.page>
But they always appear to me as plain text. I'm using Typo3 11 and Fluid Template. Do you have to activate something so that it renders as it was done before with the old old link parser?
Let's see if someone can help me
Solution 1:[1]
If you wanna get a text parsed as HTML, just use f:format.html()
in your Fluid Template. It renders a string by passing it to a TYPO3 parseFunc. By default lib.parseFunc_RTE is used to parse the string.
Solution 2:[2]
I made it.
Set the links in Typoscript this way:
lib.redesp = TEXT
lib.redesp.value = <a href="t3://page?uid=13">Test Link</a>
And in the Fluid template set:
<f:format.html parseFuncTSPath="lib.parseFunc">
<f:cObject typoscriptObjectPath="lib.redesp"/>
</f:format.html>
Don't know if this is the best way, but it works.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Julian Hofmann |
Solution 2 | Unai Aizpurua |