How can I hide a part of a template in some cases?

Author Message

Ted Striker

Wednesday 08 September 2004 9:57:44 am

I have a template to view a class that in the bottom has a print button to launch the "print_pagelayout.tpl". The print_pagelayout.tpl uses the same template to show the class, so it shows also the print button again.

Is there any way to avoid showing this part of the template in print_pagelayout.tpl? Anyway to know wich template has been executed?

TIA

Can you feel it Mr. Anderson? Closing in on you? Oh I can, I really should thank you after all. It was, after all, it was your life that taught me the purpose of all life. Purpose of life is to end.

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 31 2025 10:59:30
Script start
Timing: Jan 31 2025 10:59:30
Module start 'layout'
Timing: Jan 31 2025 10:59:30
Module start 'content'
Timing: Jan 31 2025 10:59:31
Module end 'content'
Timing: Jan 31 2025 10:59:31
Script end

Main resources:

Total runtime1.1371 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.2578151.2266
Module start 'layout' 0.00640.0036 739.484436.6797
Module start 'content' 0.01001.1263 776.1641855.9609
Module end 'content' 1.13630.0008 1,632.12507.8125
Script end 1.1371  1,639.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2818160.0002
Check MTime0.00130.1149160.0001
Mysql Total
Database connection0.00090.077710.0009
Mysqli_queries1.088295.7009460.0237
Looping result0.00040.0372440.0000
Template Total1.088095.720.5440
Template load0.00200.178620.0010
Template processing1.086095.503320.5430
Template load and register function0.00150.130310.0015
states
state_id_array0.00270.237910.0027
state_identifier_array0.00170.145120.0008
Override
Cache load0.00170.145570.0002
Sytem overhead
Fetch class attribute can translate value0.00060.052510.0006
Fetch class attribute name0.00160.141720.0008
XML
Image XML parsing0.00440.386310.0044
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00640.5596160.0004
String conversion0.00000.000840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs