ezpagedata_set and timeline ezflow

Author Message

Carlos Revillo

Thursday 01 October 2009 2:18:10 pm

hi there.
in my templates, i'm usign ezpagedata_set for setting some persistent variables, mainly for add css class to my <body> tags or even set titles for pages.

i would like to use this function with ezflow/timeline view.

it seems that these two lines of code

$nodeResult['content_info']['persistent_variable'] = array( 'extra_template_list' => array( 'timeline.tpl' ),
                                                            'pagestyle_css_classes' => array( 'yui-skin-sam', 'yui-skin-ezflow' ) );

doesn't allow me to add my custom persistent variables. if i comment them out, then i get what i expect...

any way to achieve this without hacking timeline.php file?

thanks.

André R.

Friday 23 July 2010 4:39:49 am

Nop, should be reported as bug, this should have used eZPageData::setPersistentVariable( 'extra_template_list', 'timeline.tpl', $tpl, true ); or something similar.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

Main resources:

Total runtime0.2294 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1797152.6406
Module start 'layout' 0.00710.0055 741.820339.4766
Module start 'content' 0.01260.2154 781.2969528.2891
Module end 'content' 0.22810.0013 1,309.58598.1328
Script end 0.2294  1,317.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00381.6391160.0002
Check MTime0.00160.7065160.0001
Mysql Total
Database connection0.00080.333410.0008
Mysqli_queries0.174876.1998560.0031
Looping result0.00130.5510540.0000
Template Total0.162570.820.0812
Template load0.00261.112820.0013
Template processing0.159969.698820.0800
Template load and register function0.00020.098110.0002
states
state_id_array0.00271.164210.0027
state_identifier_array0.00291.245720.0014
Override
Cache load0.00210.9114140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.403320.0005
Fetch class attribute name0.00261.116630.0009
XML
Image XML parsing0.00060.279920.0003
class_abstraction
Instantiating content class attribute0.00000.005730.0000
General
dbfile0.00120.5098170.0001
String conversion0.00000.005940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs