Wednesday 22 April 2009 2:07:10 pm
> And when the persistent_variable should comes in as a better approach?
Last month in eZ Publish 4.1. In ezwebin 1.4 (also included with ezflow 1.1 installations) there is two functions to set / append persistent_variable that also works on system templates (like user/login):
http://ez.no/developer/forum/general/pass_variable_from_pagelayout/re_pass_variable_from_pagelayout http://ez.no/developer/forum/developer/smart_loading_of_javascript > The persistent var has nothing to do with scope and namespace. That is not entirely true, if you try to set persistent_variable from sub template (or line view) and don't set it for global scope, then it won't work. > I never use "$#" and "$:", and seldom use the name attribute in a template function due to lack a very good understanding on these topic. The reason why it is not good documented is probably because they are to complex and with 3.6 there was a consensus to simplify the template language and hide away namespace and scope. But it won't be completely gone before we switch to the ezc Template system though.
Ref:
$# read global scope value $: read root scope value
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
|