Forums / Setup & design / Big problem for us

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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