Posts: 2
Threads: 1
Joined: Jul 2011
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
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.
Posts: 2,928
Threads: 195
Joined: Feb 2011
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
Posts: 2,094
Threads: 54
Joined: Jan 2011
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.).
Posts: 2
Threads: 1
Joined: Jul 2011
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
Posts: 2,928
Threads: 195
Joined: Feb 2011
Kuuke,
yes, too many results are not helpful ...
when you are ready, show us the site in "sites using getsimple" ;=)
Cheers, Connie
Posts: 2,928
Threads: 195
Joined: Feb 2011
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!