GetSimple Support Forum
printing pages - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: printing pages (/showthread.php?tid=2088)



printing pages - Kuuke - 2011-08-20

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.


printing pages - Connie - 2011-08-20

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


printing pages - mvlcek - 2011-08-20

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.).


printing pages - Kuuke - 2011-08-20

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


printing pages - Connie - 2011-08-20

Kuuke,

yes, too many results are not helpful ...

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

Cheers, Connie


printing pages - Connie - 2011-08-20

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!