[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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
_______________________________________________
TYPO3-dev mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev