View Single Post
  #1  
Old 06-22-2006, 01:41 AM
 
gallica gallica is offline
 

Member
  
Join Date: Aug 2005
Posts: 26
 

Default Display thumbnails in columns

Hi everybody,

Is there anyone that can help me to display my images in 2 columns within a loop with the following code :
Code:
{* $Id: product_images.tpl,v 1.12 2004/05/28 12:21:05 max Exp $ *} {if $active_modules.Detailed_Product_Images ne ""} {capture name=dialog} {section name=image loop=$images} <table width="30" border="0" cellspacing="2" cellpadding="0"> {if $smarty.section.image.index is div by 2}{/if}<tr> <td align="center" valign="middle"><div align="center">[img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]</div></td> </tr> {/section} </table> {/capture} {include file="dialog1.tpl" content=$smarty.capture.dialog extra="width=100%"} {/if}
Thanks by advance.
__________________
Xcart 4.018
Heavily moded
http://www.france-modelisme.com
Reply With Quote