Ad

TYPO3: How Do I Render Tt_content Text Elements In My Own Extensions?

- 1 answer

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.

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.

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

Ad

Answer

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.

Ad
source: stackoverflow.com
Ad