Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI Printer Friendly Page Version 1

Status
Not open for further replies.

cian

Technical User
Oct 11, 2001
1,383
Howya guys,

I'm creating a printer Friendly page version for certain pages of my site. I am using SSI to call up a specific style sheet when the "Printer friendly" link is clicked. All seems to work well except when I print the page I get 2 extra blank pages with it.
Any ideas what might be causing this?
In the style sheet I am basically hiding the rest of the content using "visibility:hidden", could this be a factor?

The page i'm testing with is:

The printer link is at the bottom and you can get to the CSS from the source.

Any advice/comments appreciated. Any other comments about printer friendly pages appreciated too.

Thanks!



É
:: ::
 
Hi mate,

To get around this, your best bet is not to include the code rather than hiding it. If you include all the code that you are hiding in another file, then you can include that based on the page called.

Something like the following:

<!--#set var=&quot;format&quot; value=&quot;$QUERY_STRING&quot; -->
<!--#if expr=&quot;$format != /print/&quot; -->
<!--#include virtual=&quot;file.shtml&quot; -->
<!--#endif -->

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hi Wullie,

Thanks for the feedback!
Do I understand right that the content I want to omit needs to be 'included' in the original page so I can leave it out of the printed version?
I work with your example, see what i can do. Thanks!



É
:: ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top