[TYPO3-english] formatted tt_content for usage in extension (pdf generation multiple pages)

Gijs Epping gijs.epping at efocus.nl
Wed Mar 18 16:12:12 CET 2009


Mathias Schreiber [wmdb >] schreef:
> PHP:
> $conf['renderMe.']['select.']['pidInList(or so)'] = $pageId;
> $content .= 
> $this->cObj->cObjGetSingle($conf['renderMe'],$conf['renderMe.']);

Thanks mathias with your help i got it completely working in my 
extension without typoscript :)

This is the solution.

$rs = $GLOBALS['TYPO3_DB']->sql_query("SELECT * FROM tt_content WHERE 
colpos=0 AND deleted=0 AND hidden=0 AND pid IN(4,37)");
while($rw = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($rs)){
			
	$cObj = &t3lib_div::makeInstance('tslib_cObj');
	$cObj->start($rw, 'tt_content');
			
  	$content .= $cObj->cObjGetSingle('<' . 'tt_content', array());
}


Greetings Gijs


More information about the TYPO3-english mailing list