TYPO3:如何在我自己的扩展中呈现 tt_content 文本元素? [英] TYPO3: How do i render tt_content text elements in my own extensions?

查看:13
本文介绍了TYPO3:如何在我自己的扩展中呈现 tt_content 文本元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在编写一个 TYPO3 扩展,它配置了一个 tt_content UID 的列表.这些指向文本"类型的内容元素,我想通过我的扩展程序呈现它们.

I'm currently writing a TYPO3 extension which is configured with a list of tt_content UID's. These point to content elements of type "text" and i want to render them by my extension.

由于TYPO3的特殊方式是在富文本编辑中输入的文本在进入数据库时​​进行转换,渲染到前端时再次进行转换,所以我不能只输出的数据库内容正文 字段.

Because of TYPO3s special way of transforming the text you enter in the rich text editing when it enters the database, and again transforming it when it is rendered to the frontend, i can not just output the database contents of the bodytext field.

我想渲染这些文本,因为它们通常会被 TYPO3 渲染.我怎么做?

I want to render these texts as they would usually get rendered by TYPO3. How do I do that?

推荐答案

几个月前我遇到了同样的问题.现在我必须说我不是typo3 开发人员,所以我不知道这是否是正确的解决方案.

I had the same problem a couple of months ago. Now I must say that I am no typo3 developer, so I don't know if this is the right solution.

但我使用了这样的东西:

But I used something like this:

$output .= $this->pi_RTEcssText( $contentFromDb );

在我的扩展程序中,它可以工作.

in my extension and it works.

这篇关于TYPO3:如何在我自己的扩展中呈现 tt_content 文本元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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