X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Display thumbnails in columns (https://forum.x-cart.com/showthread.php?t=22686)

gallica 06-22-2006 01:41 AM

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.

balinor 06-25-2006 02:44 AM

Couple of mods in the Custom Mods forum that do this....you can 'borrow' some of their code ;)


All times are GMT -8. The time now is 09:02 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.