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.9 R24 is now available!


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 »
  • Printer friendly view / page
  • Print
Pages: [1]   Go Down

Author Topic: Printer friendly view / page  (Read 3993 times)

solbu

  • Guest
Printer friendly view / page
« on: April 03, 2009, 03:33:17 AM »
First things first, let me explain what i am NOT asking about:
  • I do Not want any javascript. (Security reasons)
  • I do Not want to open the printer dialog, the one that actually send the page to the printer when the user clicks OK.
  • I am Not talking about the printer preview dialog that all modern browsers have.
I have searched the forum, and have read quite a bit of the discusions regarding this.

To give a specific example of what I mean, I want to do what this page has managed to perform:
http://start.websitebaker2.org/en/introduction.php. They have a PRINT-link on the page. On that page, If you add "?css=print" on the end of the url, a printer friendly webpage is opening, not a printer (preview) dialog asking if you want to actually print the page, using no javascript of any kind to do the magic.

How do i enable the same on the andreas09 template?

I have added the meta tag that is required. (<link rel="stylesheet" href="<?php echo TEMPLATE_DIR; ?>/print.css" type="text/css" media="print" />) When we use the printer preview dialog, the page is displayed correctly.

We want that other websites sould be able to link directly to the printer friendly version, using www.example.tld/pages/blahblah.php?css=print. But as it is now, that does Not work.


We are using WebsiteBaker 2.7, latest version.
Logged

Offline crnogorac081

  • Posts: 2172
  • Gender: Male
Re: Printer friendly view / page
« Reply #1 on: April 03, 2009, 02:52:17 PM »
that printer page looks great..can someone reveal the code for this please ?
Logged
Web developer

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

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