Forums / Setup & design / Setting values to arrays

"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".

Setting values to arrays

Author Message

Piotr Kwiatkowski

Sunday 06 June 2004 10:45:56 pm

Is it possible to assign values to an array after it has been created?

{let myarray=array()}
{set myarray[3]=5}
{/let}

This, doesn't work.
If it's possible, how sould we do it?

Trond Åge Kvalø

Tuesday 08 June 2004 6:48:55 am

Hi Piotr!

Have you tried this?

http://ez.no/ez_publish/documentation/reference/template_operators/arrays/insert

best regards
trondåge

trondåge