Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
how to use html_table for a loop

 
Post new topic   Reply to topic    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
ivytony
Smarty n00b


Joined: 26 Feb 2008
Posts: 3

PostPosted: Wed Feb 27, 2008 4:15 am    Post subject: how to use html_table for a loop Reply with quote

I have loop like this

{section name=img loop=$images}
<input name="link_field1" type="radio" value="{$images[img].url}"> {$images[img].img_tag} <br />

{/section}

this loop outputs a series of images accompanied with radio buttons for each image. I want to organize these images & radio buttons in a table (say 4 columns, 2 rows). How do I use 'html_table' for this loop?

thanks a lot!!
Back to top
View user's profile Send private message
Mds
Smarty Rookie


Joined: 12 Jun 2008
Posts: 17
Location: Sari

PostPosted: Thu Jun 12, 2008 12:47 pm    Post subject: Reply with quote

I have a same problem Sad
Back to top
View user's profile Send private message Yahoo Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4175
Location: Hamburg / Germany

PostPosted: Thu Jun 12, 2008 3:16 pm    Post subject: Reply with quote

The split plugin in the wiki might help.

See http://smarty.incutio.com/?page=split
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP