[TYPO3-mvc] frontend plugin and pdf_generator2

Reginaldo Arredondo reggiearre at googlemail.com
Thu Dec 30 07:28:41 CET 2010


Hi Franz, hi everyone,

I solved the problem. It was a simple thing I forgot. The pdf_generator2
configuration offers the property include_post_vars.
So in my template setup I had to add this line:
lib.empty_fce.stdWrap.postUserFunc.include_post_vars = 1

like this:
lib.empty_fce = IMAGE
lib.empty_fce.file = fileadmin/images/pdf_icon.jpg
lib.empty_fce.file.width = 60px
lib.empty_fce.wrap = <div id="pdf_generator2_link"> | </div>
lib.empty_fce.altText = generate PDF document
lib.empty_fce.stdWrap.postUserFunc = tx_pdfgenerator2->makePdfLink
lib.empty_fce.stdWrap.postUserFunc.include_post_vars = 1
lib.empty_fce.stdWrap.postUserFunc.target = _blank

now everything works fine.

For those who have problems including stylesheets with pdf_generator2, this
is how it works for me:
(in the template setup:)
lib.empty_fce = IMAGE
lib.empty_fce.file = fileadmin/images/pdf_icon.jpg
lib.empty_fce.file.width = 60px
lib.empty_fce.wrap = <div id="pdf_generator2_link"> | </div>
lib.empty_fce.altText = generate PDF document
lib.empty_fce.stdWrap.postUserFunc = tx_pdfgenerator2->makePdfLink
lib.empty_fce.stdWrap.postUserFunc.include_post_vars = 1
lib.empty_fce.stdWrap.postUserFunc.target = _blank
pdf_generator.includeCSS.file1 =
fileadmin/templates/skins/skin_saga_t_bone_2/css/mainstyles_pdf.css
pdf_generator.includeCSS.file2 =
fileadmin/templates/skins/skin_saga_t_bone_2/css/rte.css
pdf_generator.includeCSS.file3 =
fileadmin/templates/skins/skin_saga_t_bone_2/css/styles_pdf.css

Have a happy new year!
Reggie


More information about the TYPO3-project-typo3v4mvc mailing list