ez.no / ezpublish / documentation / customization / custom design / printable pages
These documentation pages are no longer maintained. Please visit the new documentation site.
You can make every page in eZ publish printerfriendly. This means that you can have a function to view any page in a different layout.
First create a file containing your layout design//templates/print_pagelayout.tpl. Then you can call it by prepending /layout/set/print to your urls, ie:
<a href="{concat("/layout/set/print/content/view/full/",$node.node_id,"/")|ezurl}">print view </a>
One thing you need to watch for is when you are within the new print view. Getting back to the original view seems to better if you dont use {ezurl}. ie.
<a href="{concat("/index.php/content/view/full/",$node.node_id,"/")}"> Back to normal page view</a>
Info from Paul Forsyth:
To get a general usable button for print layouts you could use the following:
<a href={concat('/layout/set/print/',$site.uri.uri)|ezurl} target="new">...</a>
The $site.uri.uri reports the current uri to the template.
Comments
Use CSS to make pages real printer friendly
Harry Oosterveen
Tuesday 03 August 2004 2:34:02 pm