Page 1 of 1

printing module only prints the 404 error page

Posted: Thu Aug 20, 2009 11:33 pm
by Aureli
Hi,

I was trying to make a printable pdf of the pages in the site (using cmsms 1.6.4 and Printing module 1.0.2 - which I uninstalled and re-installed after upgrading the site).

What I have done on the module is enable the pdf generation and add {cms_module module='printing' text="print this page" pdf="true"} in the content of a page.

It does show the link but all it prints is the text i have set up in the 404 error page.

I have not modified anything else since I assume that it would work without changing the templates

Any ideas?

Thanks.

Aureli

Re: printing module only prints the 404 error page

Posted: Wed Sep 23, 2009 7:47 pm
by jwaldeck
Aureli, have you made it work?! Having a similar issued here, but the Output is not showing anything fron the Smarties!

See below, no {$title} , no {$content}, anything...

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Impressão de </title>
    <meta name="robots" content="noindex"></meta>
    <base href="http://nonononononon.com/" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <link rel="stylesheet" type="text/css" media="screen" href="http://nonononononon.com/stylesheet.php?cssid=31&mediatype=screen" />
<link rel="stylesheet" type="text/css" media="print" href="nonononononon.com/stylesheet.php?cssid=30&mediatype=print" />


        <style type="text/css">
    /*
You can put css stuff here, which will be inserted in the header after calling the cmsms-stylesheets.
Provided you don't remove the {$overridestylesheet} in PrintTemplate, of course.

Any suggestions for default content in this stylesheet?

Have fun!
*/
    </style>
        
  </head>
  </__body	style="background-color: white; color: black; background-image: none; text-align: left;">	
    
        
    
  <__body>
</__html>



Re: printing module only prints the 404 error page

Posted: Sat Mar 20, 2010 11:36 am
by JornB
Any solution to this problem? I have the same issue, only blank pages..

Running with 1.6.7 and printing 1.0.4

Re: printing module only prints the 404 error page

Posted: Sat Mar 20, 2010 11:42 am
by Rolf

Re: printing module only prints the 404 error page

Posted: Sat Mar 20, 2010 12:58 pm
by JornB
Thanks!

{oldprint} tag works for now