Re: [SMARTY] Multi-Column {section}

From: Date: Wed, 05 Feb 2003 20:52:05 +0000
Subject: Re: [SMARTY] Multi-Column {section}
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7532@lists.php.net to get a copy of this message
Ok, this is going into the tips & tricks part of the manual :-) Here is an outline to the solution: http://smarty.php.net/contribs/examples/dynamic_table_columns/table.tpl.txt In your example, $cols = 3. Monte On Wed, 2003-02-05 at 14:49, WiL Laxa - Blender Media wrote: > Im trying to output records using {section} into 3 table columns > Is there anyway of doing this? > > _________________________________ > | item1 | item2 | item3 | > --------------------------------- > | item4 | item5 | item6 | > --------------------------------- > | item7 | item8 | item9 | > --------------------------------- > > instead of > > <table> > <!--|section loop=$list_records name=record|--> > <tr> > <td><!--|$list_records[record].contents[content].name|--></td> > </tr> > <!--|/section|--> > </table> > _________________________________ > | item1 > --------------------------------- > | item2 > --------------------------------- > | item3 > --------------------------------- > | item4 > --------------------------------- > | item5 > --------------------------------- > | item6 > --------------------------------- > > Any ideas? I checked out smarty.php.net but I couldn't find anything on > it... > > > WiL Laxa > BlenderMedia > Web: www.blendermedia.com > > -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#7532) next »