Skip to content

Instantly share code, notes, and snippets.

@kaimys
Created January 20, 2012 09:06
Show Gist options
  • Select an option

  • Save kaimys/1646294 to your computer and use it in GitHub Desktop.

Select an option

Save kaimys/1646294 to your computer and use it in GitHub Desktop.
eZ Publish persistent_variable
{* Merge a new key/value pair to persistent_variable in node context *}
{set scope=global $persistent_variable = $#persistent_variable | merge(hash('key', 'value')) }
{* Access the value of the persistent 'key' in pagelayout context *}
{$module_result.content_info.persistent_variable.key}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment