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.