[TYPO3-dev] Pagecontent method list

Steffen Ritter info at rs-websystems.de
Mon Mar 15 09:29:08 CET 2010


Am 15.03.2010 09:18, schrieb Tudor:
> Hi,
> I want to list in my plugin a Pagecontent element.
> I have thepagecontent id and i want to know if is some method build in
> typo3 for listing the pagecontent.
> Thx.

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




More information about the TYPO3-dev mailing list