Big problem for us

Author Message

Ole Brudvik

Wednesday 24 August 2005 3:21:04 am

we are tying to set up printer friendly page for each article. Have tried this http://ez.no/products/ez_publish_cms/documentation/customization/custom_design/printable_pages

But it doesnt work. PLEASE help us we have to have it ready this week.

our site teach.crpp.nie.edu.sg

Thanks alot!

 

Felix Laate

Wednesday 24 August 2005 4:13:22 am

Hi Ole!

I just tried the last suggestion listed on in http://ez.no/products/ez_publish_...zation/custom_design/printable_pages . Just put it into the full template for article and it worked like a charm.

Only trouble was that it did't show images etc. But I guess there's a nice way to fix that.

So, what excatly doesn't work for you?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Ole Brudvik

Wednesday 24 August 2005 4:54:40 am

i tried the same. do i have to create any new template files? or just insert it in the full article tpl?

Can you show me the code you used? Thanks!

thansks for you reply :)

Felix Laate

Wednesday 24 August 2005 5:14:44 am

I just put

<a href={concat('/layout/set/print/',$site.uri.uri)|ezurl} target="new">...</a>

into /design/_news_or whatever_design_you_use/override/templates/full/article.tpl.

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Ole Brudvik

Wednesday 24 August 2005 5:58:46 am

It works :-) do you know how to style the printerfreiendly web page?

Cheers
Ole

David Eriksson

Wednesday 24 August 2005 6:50:07 am

I believe it's using print_pagelayout.tpl.

/David

Norman Leutner

Wednesday 24 August 2005 7:16:51 am

Within the header tags:

<link rel="Alternate" href="/mysite/layout/set/print" media="print" title="Druckversion" />

This tells the browser to use the print_pagelayout.tpl as the print template.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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 31 2025 04:15:48
Script start
Timing: Jan 31 2025 04:15:48
Module start 'layout'
Timing: Jan 31 2025 04:15:48
Module start 'content'
Timing: Jan 31 2025 04:15:48
Module end 'content'
Timing: Jan 31 2025 04:15:48
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1094151.1953
Module start 'layout' 0.00460.0023 739.304736.6172
Module start 'content' 0.00700.0055 775.921994.2500
Module end 'content' 0.01240.0013 870.171937.9922
Script end 0.0137  908.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.7411140.0002
Check MTime0.00107.5848140.0001
Mysql Total
Database connection0.00075.170810.0007
Mysqli_queries0.002316.717830.0008
Looping result0.00000.079710.0000
Template Total0.00107.210.0010
Template load0.00075.302410.0007
Template processing0.00031.830410.0003
Override
Cache load0.00053.776810.0005
General
dbfile0.001510.757380.0002
String conversion0.00000.050240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs