WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Print pages
  • Print
Pages: [1]   Go Down

Author Topic: Print pages  (Read 5263 times)

tu.sha

  • Guest
Print pages
« 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!
Logged

doc

  • Guest
Re: Print pages
« Reply #1 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
Logged

tu.sha

  • Guest
Re: Print pages
« Reply #2 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 = ? :)
Logged

Offline albatros

  • Posts: 696
  • Gender: Male
    • http://www.willingen-ferienhaus.de
Re: Print pages
« Reply #3 on: April 07, 2008, 02:23:06 PM »
Hi,

use this snippet in the index.php of your template:
Code: [Select]
<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
Code: [Select]
<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
Code: [Select]
.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
Logged
أنا لست إرهابيا. ليس لدى أي ورشة عمل القنبلة في الطابق السفلي. ليس لدى أي مرض الجمرة الخبيثة أيضا. أريد شراء لا مادة الريسين. أنا سوف ابدأ السفر إلى الولايات المتحدة الأمريكية

tu.sha

  • Guest
Re: Print pages
« Reply #4 on: April 07, 2008, 02:41:37 PM »
ups  :roll:

I should continue study html and css...

thanks a lot!! :)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Print pages
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2