如何在 TYPO3 7.6 中获取 HTML 元素的渲染链接 [英] How to get rendered links of a HTML element in TYPO3 7.6

查看:24
本文介绍了如何在 TYPO3 7.6 中获取 HTML 元素的渲染链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 7.6 之前的 TYPO3 版本中,可以使用 TypoScript

IN TYPO3 versions before 7.6 it was possible to render links inside the content element HTML by using the TypoScript

tt_content.html.parseFunc.tags.link < lib.parseFunc.tags.link

从 7.6 开始,这不再起作用.怎么解决?

This does not work anymore since 7.6. How can it be solved?

推荐答案

对于这个问题,有几个可能的解决方案.

There are a couple of possible solutions for this question.

1.) 使用fluid_styled_content.

1.) Use fluid_styled_content.

猜测现在使用的是fluid_styled_content而不是css_styled_content.因此,使用的 TypoScript 不再起作用.一个有效的解决方案是切换回 css_styled_content.然而,这是古老的方式,对于较新的项目,您不应该这样做.

I guess that now fluid_styled_content instead of css_styled_content is used. Therefore the used TypoScript does not work anymore. A valid solution would be to switch back to css_styled_content. However that is the old ancient way and for newer projects you shouldn't do this.

2.) 覆盖fluid_styled_content 的模板.

2.) Override the template of fluid_styled_content.

如果你打开fluid_styled_content的模板和HTML元素,在typo3/sysext/fluid_styled_content/Resources/Private/Templates/Html.html你会看到

If you open the template of fluid_styled_content and the HTML element, found at typo3/sysext/fluid_styled_content/Resources/Private/Templates/Html.html you will see

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

这个必须改成

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

覆盖在文档中有描述,参见 https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/7.6/Configuration/OverridingFluidTemplates/Index.html

Overriding is described in the docs, see https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/7.6/Configuration/OverridingFluidTemplates/Index.html

这篇关于如何在 TYPO3 7.6 中获取 HTML 元素的渲染链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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