Path

ez.no / ezpublish / documentation / customization / custom design / printable pages


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.

How do I create a print 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

If you are using CSS anyway for formatting your page layout, simply create a printer style sheet, where menu's etc. are not displayed. Then there is no need for a special 'printer friendly' page. For example, see http://www.irc.nl/

Contents

Customization

Access control
eZ publish API Documentation
Content structure
Custom design
    User specified parameters
    Template variables set by ezPublish
    Introduction
    Variables, arrays and objects
    Node
    Database connectivity
    Sections
    File placement
    Override templates
    node_view_gui
    Pagination
    Caching
    Stylesheets
    Pagelayout
    Printable pages
    Examples
Components
Tips & Tricks
Troubleshooting


Created

08/07/2003
1:09:29 pm
by Bård Farstad

Last updated

08/07/2003
1:34:22 pm
by Bård Farstad

Authors

Bård Farstad



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.