Hello Offer, Thursday, September 23, 2004, 5:56:33 PM, you wrote:
OK> Hi, OK> Say I've for got the following parameter passed to my template: OK> names_loop => $names, OK> Where $names looks like: OK> $names = OK> [ OK> {name => name1}, OK> {name => name2}, OK> {name => name3}, OK> # ... 50 such names OK> ]; OK> What do I write in my template to print 3 names per line, for example? OK> Is this even possible or do I have to re-arrange my data? OK> I tried: OK> <tmpl_loop names_loop><tmpl_var name> <tmpl_var name> <tmpl_var name> OK> </tmpl_loop> OK> But that just printed each name 3 times :-( OK> Thanks in advance, try something like <TMPL_LOOP ROWS> <TMPL_LOOP COLS> <TMPL_VAR NAME> </TMPL_LOOP> <br> </TMPL_LOOP> where ROWS are like this: ROWS = [ { COLS => [ { NAME => 'name1' }, { NAME => 'name2' }, { NAME => 'name3' } ] }, { COLS => [ { NAME => 'name4' }, { NAME => 'name5' }, { NAME => 'name6' } ] } ] -- Best regards, Горький Юрий mailto:[EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users