PDF Export Customfields

Deutsches Benutzerforum

PDF Export Customfields

Postby Solivagus » Thu Oct 04, 2012 3:27 pm

Hallo,

wie kann ich Customfields zum PDF-Export hinzufügen?
Habe in der function _createTable() am ende angehängt:
Code: Select all
$xPos = 50;
$yPos -= 40;
$this->pages[$this->_pageNumber]->setFont($this->_fontBold, $this->contentFontSize);
$this->_writeText("Zusatz-Informationen", $xPos, $yPos);
$yPos -= 15;
 $this->pages[$this->_pageNumber]->setFont($this->_font, $this->contentFontSize);
$this->_writeText("Bank: ".$ZUSATZFELDVARIABLE, $xPos, $yPos);


Habe schon alles im /tinebase/Export und im /Addressbook/Export durchsucht...

Ich vermute, dass man es in der /Addressbook/Export/Pdf.php machen muss, aber dort komme ich auch nicht weiter...

Könnt ihr mir einen Denkanstoss geben?

Es sollen 8 customfields zum PDF-Export hinzugefügt werden.

Arne
Solivagus
 
Posts: 53
Joined: Mon Nov 14, 2011 1:51 pm

Re: PDF Export Customfields

Postby ph_il » Thu Oct 11, 2012 12:09 pm

ich würde vermuten, du solltest das in Addressbook_Export_Pdf::generate einbauen.

probiere mal etwas in der richtung (nach Zeile 186):

Code: Select all
$record[] = array ( 'label' =>'Bank',
                           'type'  => 'singleRow',
                           'value' => $_contact->customfields['bank'],
                    );
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.officespot20.com (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3450
Joined: Fri Mar 07, 2008 11:41 am


Return to Deutsch [German]

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Snickaz and 8 guests

cron
Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »