scope="global" not respected??

Author Message

Gabriel Ambuehl

Monday 18 July 2005 11:35:05 am

I need to run a certain javascript (TinyMCE if anyone cares ;) the first time the ezxmltext.tpl template is being parsed.

So I figured I'll take a global variable and check if it's already run:

{if is_set($tinymce_active)|not} 

{def $tinymce_active="true" scope="global"}

DOODAAH
{/if}

That will, however, output DOODAAH for every xml field as it seems the scope="global" isn't being honored...

Visit http://triligon.org

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 15:01:49
Script start
Timing: Jan 18 2025 15:01:49
Module start 'layout'
Timing: Jan 18 2025 15:01:49
Module start 'content'
Timing: Jan 18 2025 15:01:50
Module end 'content'
Timing: Jan 18 2025 15:01:50
Script end

Main resources:

Total runtime0.9534 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.0056 587.9141152.6250
Module start 'layout' 0.00560.0025 740.539139.4453
Module start 'content' 0.00810.9438 779.9844427.7656
Module end 'content' 0.95190.0016 1,207.75008.1641
Script end 0.9534  1,215.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3423160.0002
Check MTime0.00130.1390160.0001
Mysql Total
Database connection0.00090.090610.0009
Mysqli_queries0.917196.1890460.0199
Looping result0.00050.0491440.0000
Template Total0.922396.720.4612
Template load0.00220.235020.0011
Template processing0.920196.502620.4600
Template load and register function0.00020.021510.0002
states
state_id_array0.00080.087510.0008
state_identifier_array0.00200.213120.0010
Override
Cache load0.00180.189770.0003
Sytem overhead
Fetch class attribute can translate value0.00060.063710.0006
Fetch class attribute name0.00060.066410.0006
XML
Image XML parsing0.00020.022110.0002
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00070.0685100.0001
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/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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs