donators

n@work Internet Informationssysteme GmbH
Your ad here

supported by

 TYPO3 Hamburg
 TYPO3 Anbieter

Advertising

Setting up print and PDF link

By: Thomas

12.04.06 10:15 Age: 2 yrs

How can I add a printlink and / or an PDF link to website?

To add those links you have to install two extensions. For printlinks you'll need the extension "make_printlink" and for PDF you'll need "pdf_generator". After you have installed them adde the following code to your TypoScript Setup:

  1.  
  2. ### printlink and pdf export
  3. temp.printAndPdf = COA
  4. temp.printAndPdf {
  5.   ### Printlink
  6.   10 = USER_INT
  7.   10.userFunc = tx_open_printlink
  8.   20 = TEXT
  9.   20.value = <img src="fileadmin/images/template/print.gif" alt="print page" border="0" />&nbsp;print</a>&nbsp;/&nbsp;
  10.  
  11.   ### PDF Link
  12.   30 = USER_INT
  13.   30.userFunc = tx_pdfgenerator->openPdfLink
  14.   40 = TEXT
  15.   40.value = <img src="fileadmin/images/template/pdf.gif" alt="PDF version" border="0" />&nbsp;PDF</a>
  16. }
  17.  

 

You can now insert the content of temp.printAndPdf into a marker like this:

  1.  
  2. page.10.marks.PRINTANDPDF < temp.printAndPdf
  3.  

Found a mistake?

If you found a mistake or if you have a good tip or suggestion, please contact me at thomas(at)typo3-unleashed.net. I will check it and correct the entry or insert the new one.

Thanks in advance for your help.