Page 1 of 1

Printer Friendly pages.

Posted: Mon Oct 05, 2009 3:06 pm
by werdina
Hello

We are using

CMSMS version 1.5.4

mysql  Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (i686) using readline 5.0

php -v
PHP 5.1.6 (cli) (built: Nov 14 2008 00:38:44)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

httpd -v
Server version: Apache/2.2.3
Server built:  Nov 12 2008 10:41:27

I have been trying to configure the printer friendly pages so that it:

1. Prints with one specific header .
2. The font should only be arial 10 (with headers as bold and content as plain)

These are two simple things but I cannot manage to do this. Can someone please point me in the right direction.

Thanks.

Re: Printer Friendly pages.

Posted: Tue Oct 06, 2009 7:52 am
by Rolf
Hi werdina,

You can place some extra styling under the tab Override print stylesheet of the Printing module.
/*
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!
*/
But you have to understand the basics of CSS to do this.

In the print template you can add html code, for instance:

Code: Select all

...
  </__body style="background-color: white; color: black; background-image: none; text-align: left;">	
   <p>This is the first line on the printed paper, following by the content of the webpage.</p>
    {$content}
        
    {$printscript}
  <__body>
...
Hope this helps, Rolf

Re: Printer Friendly pages.

Posted: Tue Oct 06, 2009 8:34 am
by werdina
Thanks for the tip Rolf. I shall give it a go.