WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: tu.sha on April 07, 2008, 11:01:21 AM

Title: Print pages
Post by: tu.sha on April 07, 2008, 11:01:21 AM
Hi all!

Is there easy way to make print pages?
For example by using another template.

Actually I dont know how to address to the same page with another template.
May I use something like href=/pages/hello.php?template=simple

This exactly sample doesnt work but may be you know the working pattern? :))

Or any other way to create print page without creating special page for it to avoid double input in backend.

Thanks a lot!
Title: Re: Print pages
Post by: doc on April 07, 2008, 11:12:59 AM
Hello,

simply define a seperate CSS file with media=print. Some templates do provide such a file. In addition try a search in the WWW, you will find tons of information there.

Regards Christian
Title: Re: Print pages
Post by: tu.sha on April 07, 2008, 01:07:51 PM
Quote from: doc on April 07, 2008, 11:12:59 AM
Hello,

simply define a seperate CSS file with media=print. Some templates do provide such a file. In addition try a search in the WWW, you will find tons of information there.


Christian,  thanks.

The question is how to address to this page?
I have a page with content.
After it I have 2 links - "back" and "print page".

<a href="xxxxxx">print page</a>

xxxxx = ? :)
Title: Re: Print pages
Post by: albatros on April 07, 2008, 02:23:06 PM
Hi,

use this snippet in the index.php of your template:
<link href="http://www.xyz.com/templates/templatename/print.css" rel="stylesheet" type="text/css" media="print" />.

As a text-link (if you want, also in your index.php of the template) you can use <a href="javascript:window.print()">Print this page</a>.

And as print.css you can make a copy of the screen.css and edit it as you want. Useful would be something like this .menu { display: none; } for a div "menu" which you don´t want to be printed.

That´s all. No special page to be adressed.

hth

Uwe
Title: Re: Print pages
Post by: tu.sha on April 07, 2008, 02:41:37 PM
ups  :roll:

I should continue study html and css...

thanks a lot!! :)