Wednesday 09 July 2003 9:29:56 am
Hi folks, I have many related objects at an article. I want to show them in different places at the article page. So I want to put a related object to one or more different arrays, if a statement is true.
{let main_array = array(1,2,3,2,5,4,2)
new_array = array()}
{section name=test loop=$main_array}
{section show=eq($test:item, 2)}
{set new_array[] = $test:item}
{/section}
{/section} {/let} This didn't work. So how could I put a new value at the end of new_array? Is there a array_merge or array_append function?
Kind regards, Emil.
Best wishes,
Georg.
--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
|