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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:06:36
Script start
Timing: Jan 18 2025 15:06:36
Module start 'layout'
Timing: Jan 18 2025 15:06:36
Module start 'content'
Timing: Jan 18 2025 15:06:37
Module end 'content'
Timing: Jan 18 2025 15:06:37
Script end

Main resources:

Total runtime0.9344 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9141152.6250
Module start 'layout' 0.00550.0026 740.539139.4453
Module start 'content' 0.00800.9251 779.9844518.7969
Module end 'content' 0.93310.0013 1,298.781312.1641
Script end 0.9344  1,310.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3364160.0002
Check MTime0.00140.1455160.0001
Mysql Total
Database connection0.00060.069110.0006
Mysqli_queries0.888895.1204650.0137
Looping result0.00060.0613630.0000
Template Total0.908497.220.4542
Template load0.00200.216920.0010
Template processing0.906496.995620.4532
Template load and register function0.00020.016910.0002
states
state_id_array0.00050.053810.0005
state_identifier_array0.00150.156820.0007
Override
Cache load0.00170.1852200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.055930.0002
Fetch class attribute name0.00080.090850.0002
XML
Image XML parsing0.00040.047730.0001
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00060.0635100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs