Override and include the same .tpl-file

Author Message

Frode Marton Meling

Friday 26 September 2003 6:17:30 am

Hello
NOTE! I still use the 3.2 beta 2

I have overridden the login.tpl. This works fine, but I also use the same tpl-file with an include sentece, like this:
{include uri="design:login.tpl" embedded='1'}

To divide the tpl file based on the way the tpl file is used I supply a variable with the include (see above). I set the embedded=1. Then inside the .tpl file I check for this using a section. This also works.

The problems occures when the include and the normal usage of the tpl comes on the same page, then the embedded variable is still set to 1. Is this a bug, or is it supposed to be like this?

Frode

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 18 2025 22:19:45
Script start
Timing: Jan 18 2025 22:19:45
Module start 'layout'
Timing: Jan 18 2025 22:19:45
Module start 'content'
Timing: Jan 18 2025 22:19:45
Module end 'content'
Timing: Jan 18 2025 22:19:45
Script end

Main resources:

Total runtime0.7264 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.0058 588.0313152.6406
Module start 'layout' 0.00580.0033 740.671939.4766
Module start 'content' 0.00910.7157 780.1484400.8359
Module end 'content' 0.72480.0016 1,180.98448.1563
Script end 0.7264  1,189.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4426160.0002
Check MTime0.00130.1724160.0001
Mysql Total
Database connection0.00090.117110.0009
Mysqli_queries0.691295.1501460.0150
Looping result0.00040.0537440.0000
Template Total0.696395.820.3481
Template load0.00180.253320.0009
Template processing0.694495.591220.3472
Template load and register function0.00020.025610.0002
states
state_id_array0.00080.106410.0008
state_identifier_array0.00130.173920.0006
Override
Cache load0.00140.1987100.0001
Sytem overhead
Fetch class attribute can translate value0.00050.066610.0005
Fetch class attribute name0.00070.096510.0007
XML
Image XML parsing0.00010.016710.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00130.1773100.0001
String conversion0.00000.000940.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs