Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printer-friendly pages
Author Message
kweber Offline
Junior Member

Posts: 2
Joined: Jul 2010
2010-07-30 01:21:38
Printer-friendly pages
I just created a new web site using GS. It took my only two days although I did not have any experience in GS, CSS, and PHP, thanks to all the stuff and advice around GS. Now I would like to add a "printer-friendly"-button. The idea is that clicking on this button (or link) would generate a new web page without navigation and in black-and-white. I do understand the core idea and know that I probably need to create a printer-friendly .css and do some PHP programming but unfortunately I lack some knowledge. An example or some hints might suffice; I would appreciate any advice. Thanks in advance!
(This post was last modified: 2010-07-30 01:32:59 by digifunk.)
Find all posts by this user Quote this message in a reply
Zegnåt Offline
Posting Freak

Posts: 972
Joined: Aug 2009
2010-07-30 01:26:14
Printer-friendly pages
Your post seems to have been cut-off. Please edit it to contain your actual question so we can take a look at it.

“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Visit this user's website Find all posts by this user Quote this message in a reply
yojoe Offline
GS Freak

Posts: 1,143
Joined: Jun 2010
2010-07-30 22:24:32
Printer-friendly pages
Things you have to do, to print a page containing only content you want (only htnl&css, no php at all)
1. create a .css, who shows only things you'd like to print from your site (you will have to hide some content inside it, because they may inherit styles from base css; use display: none style)
2. add this css for printing purposes
Code:
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
(watch the paths)
3. add printing button (you may as well stylize it using css)
Code:
<a href="#" onclick="window.print(); return false;" title="Print page">Print</a>
(This is a text link, you can place an img instead)

good luck Wink

Themes: Getsimple BlueBusiness theme
Plugins: Online Visitors, Notepad
(This post was last modified: 2010-07-30 22:26:06 by BlackRose.)
Visit this user's website Find all posts by this user Quote this message in a reply
kweber Offline
Junior Member

Posts: 2
Joined: Jul 2010
2010-07-31 00:44:54
Printer-friendly pages
yojoe wrote:Things you have to do, to print a page containing only content you want (only htnl&css, no php at all)
1. create a .css, who shows only things you'd like to print from your site (you will have to hide some content inside it, because they may inherit styles from base css; use display: none style)
2. add this css for printing purposes
Code:
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
(watch the paths)
3. add printing button (you may as well stylize it using css)
Code:
<a href="#" onclick="window.print(); return false;" title="Print page">Print</a>
(This is a text link, you can place an img instead)

good luck Wink
Thanks a lot. I found another way to do the job but it is not as simple as yours.
Find all posts by this user Quote this message in a reply
JWH_Matthew Offline
Administrator

Posts: 663
Joined: Nov 2009
2010-07-31 11:30:37
Printer-friendly pages
I am thinking this could be a good plugin.

I am just not sure how to do it without having a common css style sheet that I could
just replace if print was clicked.

I think the only way it would be possible is if the created their own print style sheet and
then the plugin just added the print button.

JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Visit this user's website Find all posts by this user Quote this message in a reply
yojoe Offline
GS Freak

Posts: 1,143
Joined: Jun 2010
2010-07-31 21:12:24
Printer-friendly pages
matthew: think how to print only get_page_content() section Smile
iframe isn't a good solution, but maybe using jquery, opening the page content in new layer and then printing it ?

Themes: Getsimple BlueBusiness theme
Plugins: Online Visitors, Notepad
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Generate Leads from Documents vCard Hosting