在typo3 9 中呈现HTML 元素中的链接 [英] rendered links in HTML element in typo3 9

查看:27
本文介绍了在typo3 9 中呈现HTML 元素中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Typo3 的默认行为是 Typo3-Links 不在 HTML 元素中呈现.有一个解决方法,请参见此处:如何在 TYPO3 7.6 中获取 HTML 元素的渲染链接

Default behaviour of Typo3 is that Typo3-Links are not rendered in a HTML-element. There is a workaround, see here: How to get rendered links of a HTML element in TYPO3 7.6

不幸的是,在 Typo3 9.5.7 中这似乎不起作用.如上所述,我用这个替换了 html.html:

Unfortunately, in Typo3 9.5.7 this seems not to work. As described above, I replaced html.html by this:

<f:format.htmlentitiesDecode>
    <f:format.html parseFuncTSPath="lib.parseFunc">
        {data.bodytext}
    </f:format.html>
</f:format.htmlentitiesDecode>

我也用这个替换了 html.html,对我不起作用:

I also replaced html.html by this, did't work for me:

<f:format.html>{data.bodytext}</f:format.html>

在 HTML 元素中,我测试了这些链接的变体,但没有一个有效:

In the HTML-element I tested these variations of links, but none works:

<a class="download-link" href="t3://file?uid=107" target="_blank">Download (PDF)</a>
<link t3resources/cms/pdf/linux.pdf>Administration von Linux-PCs</link>
<link 27>Linktext</link>

推荐答案

您是否尝试过在常量中设置 plugin.tx_powermail.settings.misc.htmlForHtmlFields = 1?

Have your tried setting plugin.tx_powermail.settings.misc.htmlForHtmlFields = 1 in the constants?

这篇关于在typo3 9 中呈现HTML 元素中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆