GetSimple Support Forum

Full Version: printing pages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using get-Simple to build some smaller websites. I already converted a nice theme from FreeCSSTemplates to use with Get-Simple. Added several enhancements to the back-end (full featured CKEditor e.g.).

I have to say I enjoy this CMS Smile

For the visitors I'm looking for a way to print pages they want to keep: printing on paper or printing as pdf. That kind of things.

I think this can me done using some script or so but I don't know where to start of how to do.
Kuuke Wrote:I think this can me done using some script or so but I don't know where to start of how to do.

a first start would be search in google or bing or otherwere ;=)

you do not really need big scripts, very simple Javascript might help

Code:
<form><input type="button" value=" Print this page "
onclick="window.print();return false;" /></form>

or
Code:
<a href="#" onclick="window.print();return false;">print</a>

or

http://www.dynamicdrive.com/dynamicindex9/other1.htm

or
http://www.boutell.com/newfaq/creating/printbutton.html


or
http://www.makeuseof.com/tag/add-print-button-web-page/
Cheers, Connie
You should also keep in mind that the visitors most often want to print the content, not the header, menu, advertisements, etc.

You can add additional styles for printing to your style sheet (which should work in most browsers), e.g.
Code:
...
@media print {
  body {
    font-size: 12pt !important;
  }
  #navigation, #header .language {
    display: none;
  }
...
}
Of course you have to adjust it to your theme template regarding IDs etc.

For an example goto http://mvlcek.bplaced.net/get-simple/i18ngallery and view the "Print Preview" in your browser (menu is hidden, header is smaller, etc.).
Connie, thanks!

I Googled, I found a lot. Overwhelmed I think I found too much and I was thinking too difficult. I forgot there is always an easy way Smile
Kuuke,

yes, too many results are not helpful ...

when you are ready, show us the site in "sites using getsimple" ;=)

Cheers, Connie
mvlcek Wrote:You should also keep in mind that the visitors most often want to print the content, not the header, menu, advertisements, etc.

yes, a print-stylesheet is an absolute must, you are right!