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

Mathias Schreiber [wmdb >] mathias.schreiber at wmdb.de
Wed Mar 18 15:55:26 CET 2009


Gijs Epping schrieb:
> Hello,
> 
> I need to generate a pdf of different pages pulled together in one 
> single page.
> 
> My idea was to use pdf_generator: (That really works great by the way)
> http://typo3.org/extensions/repository/view/pdf_generator/current/
> 
> The whole idea would be like this, a user can "save" different pages to 
> a "inbox" when the users goes to this inbox he gets the option to 
> generate a pdf of a selection of those pages.
> 
> After that i was thinking to generate one big page with all the selected 
> pages (column 0 middle column) in it and that big page is generated to a 
> pdf by pdf_generator.
> 
> Now i want to know how typo3 is generating a content page and if this is 
> replicable in a extension? So i can generate multiple content pages and 
> return from the extension.
> 
> while(pageids){
>     $content.=$this->typo3formatted_ttcontent_content();
> }
> 
> something like that ;)
> 
> Any idea's if this is possible?

use Typoscript and PHP.
TS:
plugin.renderStuffForPDF.renderMe = CONTENT
plugin.renderStuffForPDF.renderMe.table = tt_content
plugin.renderStuffForPDF.renderMe.xxx check styles.content.get for more info

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

cheers and welcome to the dark side....
Mathias


More information about the TYPO3-english mailing list