[TYPO3-english] R: pdf_generator2 + realurl

De Contardi Riccardo Riccardo.DeContardi at bhuman.it
Wed Oct 28 14:48:21 CET 2009


Hi Sandy

My Realurl config for naming pages:


// configure filenames for different pagetypes
		'fileName' => array(

// add .html suffix to the end of the path generated
// 'defaultToHTMLsuffixOnPrev' => 1,

  'index' => array(							
  /*	#uncomment following to have /index.html as pagename
	'index.html' => array(
		'keyValues' => array(),
	),*/
					
	'sitemap.xml' => array (
		'keyValues' => array (
			'type' => 776,
		),
	),

	'document.pdf' => array(
		'keyValues' => array(
			'type' => 123,
			),
		),
					
	'rss.xml' => array(
		'keyValues' => array(
			'type' => 100,
			),
		),
				
	'rss091.xml' => array(
		'keyValues' => array(
			'type' => 101,
			),
		),
					
	'rdf.xml' => array(
		'keyValues' => array(
			'type' => 102,
		),
	),
				
	'atom.xml' => array(
		'keyValues' => array(
			'type' => 103,
		),
	),
			
  ),
),

I also tried the following experiment:
After
$link.=$this->cObj->getTypoLink_URL($GLOBALS['TSFE']->id,array("type" => $parameters['typeNum']));

I added
echo (URL($GLOBALS['TSFE']); and it returned 72 (correct page ID)
echo ($parameters['typeNum']); and it returned 123 (correct pagetype)

but echo($link); returns the "bare" link http://typo3.local/mypage/


Thanks for support


**************************************
Riccardo De Contardi
 
B Human Srl - www.bhuman.it 
Via Canzio, 15 - 20131 Milano
Tel +39.02 20 23 271 - Fax +39.02 20 240 561
-----Messaggio originale-----
Da: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-bounces at lists.typo3.org] Per conto di Siedlaczek, Sandy
Inviato: mercoledì 28 ottobre 2009 14.19
A: TYPO3 English
Oggetto: Re: [TYPO3-english] pdf_generator2 + realurl


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
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


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 responsabilità 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.




More information about the TYPO3-english mailing list