[TYPO3-dev] rendering a modified tt_content record inside of plugin
bernd wilke
xoonsji02 at sneakemail.com
Wed Apr 1 05:32:28 CEST 2009
On Tue, 31 Mar 2009 20:38:41 +0300 Dmitry Dulepov wrote:
> 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.
thanks. with this help I could rebuild my extension imagescroller and fix
some old problems about caption, alt and title.
bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-dev
mailing list