Forums / Developer / Smart loading of JavaScript / Comment50606
Peter Putzer
Thursday 22 January 2009 5:47:44 am
I've been thinking about such a template operator for some time now. I'll probably write one when I've got the time.
As for <i>Note: This will only work in node templates, as content/view and content/versionview are the only views that sends this value to pagelayout in the 'content_info' hash.</i>:
That's quite unfortunate (and has been reported as a bug/feature request before). It shouldn't be a problem to add the persistent_variable to other views, should it? Does it help if we provide patches (i.e. would it get into the Exponential kernel in a reasonable amount of time)? And (as a workaround), should it be possible to set a global variable in a template operator if the corresponding template variable does not exist?
Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at