Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
printing pages
#1
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.
Reply
#2
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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
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.).
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#4
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
Reply
#5
Kuuke,

yes, too many results are not helpful ...

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

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
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!
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)