Printer Friendly pages.

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
werdina
New Member
New Member
Posts: 7
Joined: Mon Oct 05, 2009 2:39 pm

Printer Friendly pages.

Post 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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Printer Friendly pages.

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
werdina
New Member
New Member
Posts: 7
Joined: Mon Oct 05, 2009 2:39 pm

Re: Printer Friendly pages.

Post by werdina »

Thanks for the tip Rolf. I shall give it a go.
Post Reply

Return to “CMSMS Core”