This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Extensions » ezscript loadorder and template question

ezscript loadorder and template question

ezscript loadorder and template question

Tuesday 01 March 2011 1:27:59 pm - 1 reply


We have experienced that ezscript_require(array(file,file,file) is not work if it appears before the following statement in our override template

{set scope=global persistent_variable=hash('left_menu', false(),
'extra_menu', false(),
'show_path', false())}

If i move the ezscript_require below the persisten_variable setting it works fine..

Is this a bug or something i should understand?

Also how can we influence the order of which the javascripts are loaded? We currently need to disable the packer feature to have our dependent libraries work successfully? Any thing i can do to control the order of these included javascripts when adding into the ezscript_require ordering?

Tuesday 01 March 2011 2:25:33 pm

persistent_variable is used internally in ezscript* ezcss* functions to be able to persist variables from node view if page is cached.

The line you refer to clears the whole value. You can use ezpagedata_set( string $key, mixed $value ) / ezpagedata_append( string $key, mixed $value ) as provided by ezwebin instead, they will not overwrite the whole variable but instead threat it as a hash.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from