[TYPO3] How to insert a copy of tt_content (content element) in frontend using typoscript or php

Anders Tillbeck at at opengate.dk
Mon Apr 30 15:31:18 CEST 2007

> Now I just need to know how to create a correct entry in the tt_content 
> plus how to display a tt_content element on a page when knowing the uid 
> of the content element. I will ask this question in a new thread.
> BR. Anders

and one of these answers I foundi a post from 2004 from Gerd Reise.
Thank you Gerd :-)

// To get an exsisting tt_content with id 1 and 2 and 3
// and plae then in the variable $parsedContent
$lCObj = t3lib_div::makeInstance("tslib_cObj");
$lConf = array('tables' => 'tt_content', 'source'=>'tt_content_1,2,3');
$parsedContent = $lCObj->RECORDS($lConf);
// insert the three tt_content elements on your site
print $parsedContent;

BR. Anders

More information about the TYPO3-english mailing list