overriding pagelayout kills global variables in content?

Author Message

zurgutt -

Wednesday 03 June 2009 12:32:40 am

I have hit a strange problem which im not sure if its in my head or some bug. I have tried to describe it here: http://projects.ez.no/paradoxpdf/forum/general/global_variables_lost

In short: paradoxpdf extension defines override to pagelayout. In this override it uses set-block to capture module.content in variable, to pipe it through pdf generation operator. Nothing is changed in content view part, exact same templates are used.

Now, i am defining some variables in a node full view override template:
{def $myvar='plah'}

Also i have defined ezxml custom tags, and i access these variables in it: {$#myvar}. It works fine and does its magic. But if paradoxpdf view is used, these variables will not be there in tag templates.. how can it be? Also i tried to use $persistent_variable and it seems to disappear similarly under paradoxpdf. How can changing pagelayout influence content? Probably im missing something here, but have hit brick wall with this problem and need it to work bad.. any ideas?

Certified eZ developer looking for projects.
zurgutt at gg.ee

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 19 2025 23:39:00
Script start
Timing: Jan 19 2025 23:39:00
Module start 'layout'
Timing: Jan 19 2025 23:39:00
Module start 'content'
Timing: Jan 19 2025 23:39:01
Module end 'content'
Timing: Jan 19 2025 23:39:01
Script end

Main resources:

Total runtime1.3458 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.0084 590.5313152.6563
Module start 'layout' 0.00840.0036 743.187539.5078
Module start 'content' 0.01201.3322 782.6953469.6953
Module end 'content' 1.34430.0015 1,252.39068.0938
Script end 1.3457  1,260.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2787160.0002
Check MTime0.00160.1192160.0001
Mysql Total
Database connection0.00090.067510.0009
Mysqli_queries1.295596.2669460.0282
Looping result0.00050.0370440.0000
Template Total1.307197.120.6535
Template load0.00250.183220.0012
Template processing1.304696.939720.6523
Template load and register function0.00020.013910.0002
states
state_id_array0.00120.090110.0012
state_identifier_array0.00200.147020.0010
Override
Cache load0.00210.154190.0002
Sytem overhead
Fetch class attribute can translate value0.00090.070110.0009
Fetch class attribute name0.00080.057620.0004
XML
Image XML parsing0.00460.339710.0046
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00680.5042170.0004
String conversion0.00000.000740.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0001 secs