RE: [SMARTY] Multi-Column {section}

From: Date: Wed, 05 Feb 2003 23:30:58 +0000
Subject: RE: [SMARTY] Multi-Column {section}
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7536@lists.php.net to get a copy of this message
I have a similar form ans I use a plugin for the cell padding I added the plugin in http://smarty.incutio.com/?page=SmartyPlugins (scroll to the bottom) and the template example is there too. I was using {if $smarty.section.sectionname.iteration eq $smarty.section.sectionname.total} but I'm going to change it for {if $smarty.section.sectionname.last} Tnx Monte. Eduardo Morales > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Wednesday, February 05, 2003 12:52 PM > To: wil@blendermedia.com > Cc: Smarty General > Subject: Re: [SMARTY] Multi-Column {section} > > 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. tx > t > > 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> > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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