Forums / Developer / Set-block & array

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Set-block & array

Author Message

Fabien Mas

Wednesday 12 March 2008 9:50:10 am

Hi,
In a template file, I would like to put an array in a 'set-block'

 
{set-block scope=root variable=email_cc_receivers}{$tab_add}{/set-block}	

but in kernel\content\collectinformation.php my $ccReceivers varaible is the string 'array'

How can I do to have an array in collectinformation.php ?

thx

Fabien Mas

Wednesday 12 March 2008 10:01:16 am

solved

{foreach $tab_add as $add}
	{append-block scope=root variable=email_cc_receivers}{$add}{/append-block}
{/foreach}