WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Print pages
(1/1)
tu.sha:
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!
doc:
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
tu.sha:
--- 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.
--- End quote ---
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 = ? :)
albatros:
Hi,
use this snippet in the index.php of your template:
--- Code: ---<link href="http://www.xyz.com/templates/templatename/print.css" rel="stylesheet" type="text/css" media="print" />
--- End code ---
.
As a text-link (if you want, also in your index.php of the template) you can use
--- Code: ---<a href="javascript:window.print()">Print this page</a>
--- End code ---
.
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
--- Code: ---.menu { display: none; }
--- End code ---
for a div "menu" which you don´t want to be printed.
That´s all. No special page to be adressed.
hth
Uwe
tu.sha:
ups :roll:
I should continue study html and css...
thanks a lot!! :)
Navigation
[0] Message Index
Go to full version