[TYPO3-dev] Pagecontent method list
Steffen Ritter
info at rs-websystems.de
Mon Mar 15 11:30:18 CET 2010
Am 15.03.2010 10:37, schrieb Tudor:
> On 3/15/2010 10:29 AM, Steffen Ritter wrote:
>> Hi Tudor,
>> that's quite easy.
>> You'll need:
>> 1. The tt_content record:
>> list($row) =
>> $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*','tt_content','uid='.intval($id));
>>
>>
>> 2. a tslib-Content-Object:
>> $cObj = t3lib_div::makeInstance('tslib_cObj');
>>
>> 3. both connected to each other:
>> $cObj->start($row,'tt_content');
>>
>> 4. render the output via the "normal" tt_content rendering
>> $output =
>> $cObj->cObjGetSingle($GLOBALS['TSFE']->config['tt_content'],$GLOBALS['TSFE']->config['tt_content.']);
>>
>>
>> done...
>>
>> regards
> Hi Steffen, thx for your reply.
> It didn't work for me.
> $row get the pagecontent record but at the end $output it's empty.
> Maybe it need other settings too.....
>
yeah...
$GLOBALS['TSFE']->config is wrong :) copy paste error ...
should read $GLOBALS['TSFE']->tmpl->setup
regards
Steffen
More information about the TYPO3-dev
mailing list