[TYPO3-dev] Pagecontent method list

Tudor tudor.pali at fecher.eu
Mon Mar 15 10:37:30 CET 2010


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.....





More information about the TYPO3-dev mailing list