tags:

views:

1176

answers:

2

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?

+2  A: 

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.

Jan Hancic
that works beautifully, thank you very much!
arturh
A: 

That works for me; it renders any content element with the given ID:

function getCE($id)
{
    $conf['tables'] = 'tt_content';
    $conf['source'] = $id;
    $conf['dontCheckPid'] = 1;
    return $this->cObj->cObjGetSingle('RECORDS', $conf);
}

See http://lists.typo3.org/pipermail/typo3-dev/2007-May/023467.html

cweiske