为什么Typo3没有解析<link ... =“”/> - 标签回到<a ...="">-tags?

时间:2016-03-03 14:27:55

标签: html parsing typo3 typoscript rte

At this moment I work on an own template using Typo3 7.6.2 expanding it step by step. As I finished the routine for a certain content type (->ctype, ->renderObj), I noticed that links, that are defined in the rte of the backend, are not processed correctly:

When I use the rte to define a link and toogle the text mode, it shows a valid HTML definition of a link:

image: using the rte dialog to setup the link

<a data-htmlarea-external="1" title="follow the link" target="_blank" href="http://stackoverflow.com">a link</a>

但是在生成的页面中,链接是使用link-tag定义的:

<link http://stackoverflow.com _blank - "follow the link">a link</link>

包含由rte设置的内容的typoscript如下:

BODYTEXT = TEXT
BODYTEXT.field = bodytext
  • 我可以以某种方式禁用从a-tags到link-tags的解析吗?
  • 我是否必须定义从link-tag回到a-tag的转换?

1 个答案:

答案 0 :(得分:1)

您缺少parseFunc。这需要例如解析RTE生成的<link>标记并将其转换为HTML。尝试将其添加到TypoScript:

BODYTEXT.parseFunc = < lib.parseFunc_RTE

需要安装css_styled_content才能实现此目的。