View Single Post
  #3  
Old 02-20-2003, 10:59 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Please note that unless you modify the product images template then the first detail image will show twice. If you dont want this then amend code to the following:
Code:
{if $images ne ""} {section name=num loop=$images} {/section} {if %num.index% <2} {else} {capture name=dialog} <table border=0 width=100% cellpadding=2 cellspacing=0> <tr> {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $smarty.section.image.index eq 0} {else} <td align=center valign=top> [img]../product_image.php?imageid={$images[image].imageid}[/img] </td> {if $smarty.section.image.index is even} </tr> <tr> {/if} {/if} {/if} {/section} </tr> </table> {/capture} {if $smarty.capture.dialog ne ""} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"} {/if} {/if} {/if}

btw this show two images per row.
__________________
ex x-cart guru
Reply With Quote