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.