Forums / Setup & design / Prevent "TipAFriend" Link from appearing in printer friendly

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

eZ debug

Timing: Jan 20 2025 04:11:57
Script start
Timing: Jan 20 2025 04:11:57
Module start 'content'
Timing: Jan 20 2025 04:11:57
Module end 'content'
Timing: Jan 20 2025 04:11:57
Script end

Main resources:

Total runtime0.0174 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.4141180.7969
Module start 'content' 0.00620.0045 770.210993.8828
Module end 'content' 0.01070.0067 864.093870.7031
Script end 0.0174  934.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.5163120.0002
Check MTime0.00147.8588120.0001
Mysql Total
Database connection0.00063.445510.0006
Mysqli_queries0.002815.948940.0007
Looping result0.00000.115020.0000
Template Total0.006436.610.0064
Template load0.003419.326010.0034
Template processing0.003017.237010.0030
Override
Cache load0.002816.167910.0028
General
dbfile0.00031.5906100.0000
String conversion0.00000.034230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs