Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Help with [loop list=,please.



Hi,

I am tring to get the [loop] tag to work with a list provided as a array
reference.

Here is the code:   (It produces output of    ARRAY(blah,blah) instead of
the actual list)

[calc]
     # Make a structure
     my @ary = (
                  [
                    [ qw/key1 val1a  val1b/ ],
                    [ qw/key2 val2a  val2b/ ],
                    [ qw/key3 val3a  val3b/ ],
                    [ qw/key4 val4a  val4b/ ]
                 ]
               );
     $Scratch->{ary} = \@ary;
     return;
 [/calc]
 [loop list=`$Scratch->{ary}` more=1 ml=2]
 [list]
 [loop-code] [loop-pos 1] [loop-pos 2]<BR>
 [/list]
 [more-list]
     More matches: [more]
 [/more-list]
 [/loop]

Thanks.



_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: