[TYPO3-dev] rendering a modified tt_content record inside of plugin

Dmitry Dulepov dmitry at typo3.org
Tue Mar 31 19:38:41 CEST 2009


Hi!

bernd wilke wrote:
> can you give me a hint where I can find an usage or example?

Here is the code:

$data = array('CType' => 'text', 'bodytext' => 'whatever', .......);
$cObj = t3lib_div::makeInstance('tslib_cObj');
$cObj->start($data, 'tt_content');
$result = $cObj->cObjGetSingle('<tt_content', array());

You must have CType set correctly. Notice "<" before "tt_content" in cObjGetSingle. If you omit it, nothing will work.

-- 
Dmitry Dulepov
Skype: liels_bugs
In the blog: http://dmitry-dulepov.com/article/automatic-realurl-configuration-howto.html




More information about the TYPO3-dev mailing list