Forums / Developer / Printer friendly version

Printer friendly version

Author Message

gavyn eade

Tuesday 10 June 2003 8:36:16 am

Hi there,

Is it possible to create "printer friendly pages"?

If so how do you do it, i've noticed it on the actual www.ez.no site and would be a very usefull tool.

Thanks in advance,
Gavyn

Paul Forsyth

Tuesday 10 June 2003 9:08:19 am

have a look at:

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/custom_print_layout

paul

Rib Rdb

Tuesday 10 June 2003 11:25:47 am

If you use css for layout, you can use a media stylesheet. When the page is printed, the browser will automatically use the print stylesheet instead of the screen one. The users don't even have to click on a "printer friendly" link.

Paul Forsyth

Tuesday 10 June 2003 11:42:37 am

that would be an ideal solution :) at the moment our sites are rather table-centric and the main pagelayout pulls in lots of other things besides the main content so switching css would still leave 'artifacts' around the content. but i have been thinking of trying out table-less designs, or at least slowly moving to it.

do you do this, rib?

paul

Rib Rdb

Tuesday 10 June 2003 7:53:01 pm

I haven't yet tried a tableless eZPublish design. I guess it depends on how much you want to change in the printer version. You can still use tables as long as you give everything you want to hide an id. All you have to do in the printer sheet is change the text colors and set display: none on whatever images, tables, rows, etc. that you want hidden.