dce上的Typo3 v9.5 Typolink。出现在<a> element

时间:2018-11-09 11:16:43

标签: typo3 fluid typo3-9.x typolink

In Typo3 v6.2, I've sorted this out by using and setting bwmLink as typolink type in it's dce:

<f:link.page pageUid="{field.bwmLink}">{field.bwmTLink}</f:link.page>

Now in Typo3 v9.5 LTS, if I try this, <f:link.page> will not work since typo3 automatically sets the next link: t3://page?uid=X

If I use the <f:link.typolink> element, the link will display correctly but the text will be fulfilled by the name of the link if it's interior was empty (something I don't want).

For instance:

{field.link} = t3://page?uid=1

{field.linktext} = ' '

<f:link.typolink parameter="{field.link}">{field.linktext}</f:link.typolink>

This results in:

<a href="/mylink">mylink</a>

How can I evade this behaviour?. There is any way I could set the text of the link through the same typolink element instead of creating another field only for the text inside?

0 个答案:

没有答案