[TYPO3-english] pdf_generator2 + realurl

Siedlaczek, Sandy siedlaczek at kemper.de
Wed Oct 28 14:19:20 CET 2009


Hi Ricardo,

the important thing in the tutorial is the RealURL-Config. After changing class.tx_pdfgenerator2.php:

                                   'fileName' => array (
                                                        'defaultToHTMLsuffixOnPrev' => 1,
                                                        'index' => array(
                                                                         'print.html' => array(
                                                                                               'keyValues' => array (
                                                                                                                     'type' => 98,
                                                                                                                     )
                                                                                               ),
                                                                         'print.pdf' => array(
                                                                                              'keyValues' => array (
                                                                                                                     'type' => 123,
                                                                                                                     )
                                                                                               ),
                                                                         ),

                                                        ),

If you have done so, look in your Configfile, if there is another Config on type=123 above, cause RealURL works with the first possible Config in this array.

Greetings Sandy



-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] Im Auftrag von De Contardi Riccardo
Gesendet: Mittwoch, 28. Oktober 2009 12:08
An: typo3-english at lists.typo3.org
Betreff: [TYPO3-english] pdf_generator2 + realurl

Hello everybody!

 

I use T3 4.2.10 and the last version of realurl and pdf_generator2

The link to PDF is built in my TS Setup:

 

lib.convertPDF = TEXT

lib.convertPDF.value= GET PDF!

 

lib.convertPDF.postUserFunc = tx_pdfgenerator2->makePdfLink

lib.convertPDF.postUserFunc.target =

 

 

I noticed that the URLs to the PDF are not "Realurl-compliant", I.E.

http://typo3.local/index.php?id=72&type=123

 

Instead of

 

http://typo3.local/mypage/document.pdf

 

 

After a few searches on Google, I ran into this tutorial:
http://blog.hait.de/2007/02/09/realurl-und-pdf_generator2/

 

I tried to follow it but.. without result! After changing
class.tx_pdfgenerator2.php, The link became simply:

 

http://typo3.local/mypage/

 

Could you help me? Thank you!

 

**************************************

Riccardo De Contardi

 

B Human Srl - www.bhuman.it
<file:///C:\Documents%20and%20Settings\riccardo.decontardi\Dati%20applic
azioni\Microsoft\Firme%20elettroniche\www.bhuman.it>  

Via Canzio, 15 - 20131 Milano

Tel +39.02 20 23 271 - Fax +39.02 20 240 561

 



Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.


_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list