[TYPO3-dev] Pagecontent method list

Tudor tudor.pali at fecher.eu
Mon Mar 15 11:50:01 CET 2010


Thank you Steffen,
Your solution works nice :)

Steffen solution:
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
       $searchContent .= 
$cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['tt_content'],$GLOBALS['TSFE']->tmpl->setup['tt_content.']); 



..meanwhile i found another solution that works:
        $tt_content_conf = array('tables' => 'tt_content','source' => 
$Id,'dontCheckPid' => 1);
        $searchContent .= $this->cObj->RECORDS($tt_content_conf);

I will study the differences.
Thx again Steffen for your replys
Bye




More information about the TYPO3-dev mailing list