Return URL from print_pagelayout.tpl

Author Message

Børge Warvik

Friday 26 May 2006 12:40:46 am

Hi

I've created a printerfriendly page and used this to direct the user to that page:

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

The problem is that I don't know what code to use to get back! When doing this:

<a href={$node.url_alias|ezurl()}>Back</a>

I still get the "layout/set/print/" in my URLs. How do I get the URL to go back?

Børge Warvik

Friday 26 May 2006 4:01:55 am

Anyone now what the equivalent of "layer/set/print" is for standard layout?

Kristof Coomans

Friday 26 May 2006 10:43:27 am

If you don't want to have the ezurl() operator adding /layout/set/[whateverlayout] to all paths, then set UseAccessPass to false in layout.ini for the print layout:

[print]
PageLayout=print_pagelayout.tpl
UseAccessPass=false

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Paul Borgermans

Friday 26 May 2006 11:15:05 am

I didn't know that one ;-)

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Kristof Coomans

Saturday 27 May 2006 1:36:44 am

I didn't know it either, the source code told me about it ;-)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Børge Warvik

Monday 29 May 2006 12:47:29 am

Well, it worked!

Thanks!

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