Wednesday 15 June 2011 2:51:54 am
Hello folks, I have created a fetch to extract some nodes and now I would like to create an array with some of the nodes. If they pass a condition I will insert it in the array. However I'm not able to create the right code to insert in the array. I created an Array {def $myarray=Array()}
and then I tried to insert it with this sentence
{set $myarray[$counter]=$nodes[$to_display]}
I have also tried the insert
<span class="line">{$myarray | insert( 0, $nodes[$to_display] )}</span> I think it's a noob syntax problem :$ . Can you help me? Cheers, Alejandro
|