Setting global variables

Author Message

Rami Grossman

Friday 22 October 2004 7:37:34 am

I need to set a global variable as an array. So I could access it from any place.
I used to write set-block with scope=root, but it can't be set as an array.

thanks
Rami

Ɓukasz Serwatka

Saturday 23 October 2004 1:31:59 pm

Hi

Did you try this?

{set-block name=<name> scope=global variable=<myvariable>}

{array(1,2,3,4)} or

{hash('key', 'value')}

{/set-block}

I hope this help

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Rami Grossman

Sunday 24 October 2004 1:06:02 am

but set-block is used only to pass text input as a variable. It is not logical that ez crew didn't think about using global variables not only as text input!?!?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.