Prevent "TipAFriend" Link from appearing in printer friendly

Author Message

Softriva .com

Tuesday 17 July 2007 12:51:18 am

I am using layout/set/print/...... for printer friendly view. How can I check (conditional) that I am in the printer friendly view so I prevent the Tip a Friend link from appearing.

paul bolger

Friday 20 July 2007 7:31:37 am

how about...

{if $requested_uri_string|contains( 'set/print' )}

That sort of thing works for me for setting page banners by url path.

(actually, contains|not - or whatever, but you get the idea!)

Paul Bolger

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 20 2025 05:49:05
Script start
Timing: Jan 20 2025 05:49:05
Module start 'layout'
Timing: Jan 20 2025 05:49:05
Module start 'content'
Timing: Jan 20 2025 05:49:06
Module end 'content'
Timing: Jan 20 2025 05:49:06
Script end

Main resources:

Total runtime0.8906 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 589.4141152.6563
Module start 'layout' 0.00960.0032 742.070339.5078
Module start 'content' 0.01290.8763 781.5781516.9766
Module end 'content' 0.88920.0014 1,298.55478.0938
Script end 0.8906  1,306.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4250160.0002
Check MTime0.00140.1551160.0001
Mysql Total
Database connection0.00100.114710.0010
Mysqli_queries0.843394.6868540.0156
Looping result0.00060.0701520.0000
Template Total0.851195.620.4256
Template load0.00180.198620.0009
Template processing0.849495.364020.4247
Template load and register function0.00020.022310.0002
states
state_id_array0.00090.101510.0009
state_identifier_array0.00100.107020.0005
Override
Cache load0.00140.1562100.0001
Sytem overhead
Fetch class attribute can translate value0.00120.133620.0006
Fetch class attribute name0.00130.141430.0004
XML
Image XML parsing0.00070.078720.0004
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00090.0956160.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs