View Single Post
  #1  
Old 03-26-2005, 02:14 AM
 
NJB NJB is offline
 

Member
  
Join Date: Mar 2005
Posts: 28
 

Default Related Products.tpl - column versus row format

Hi - just wondering whether someone can help me modify this code please. I've got my related products showing with thumbnails, but they are appearing in one long column. I'd like to change the code so that they appear in a row (5 across the page). I'm new to HTML code, and don't know where to begin with this. Any help is appreciated.

Code:
{* $Id: related_products.tpl,v 1.7 2002/10/22 10:27:05 olga Exp $ *} {if $product_links ne ""} {capture name=dialog} <table border=0 width=100%><tr><td> <table border=0 width=100%> {section name=cat_num loop=$product_links} {if $smarty.section.product_links.index is div by 3} </tr><tr valign="top"> {/if} <td valign="top"> <table border=0 width=100%> <tr> <td width=100 align=center valign=top> <a href=product.php?productid={$product_links[cat_num].productid}&cat={$cat}&page={$navigation_page}> {include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=100 product=$products[product].product} </a> {$product_links[cat_num].product|escape}</font> <font class=TableCenterProductTitleOrange> </font><font size=1></font></p></td> </tr> </table> </td> {/section} </td></tr></table> </td></tr></table> {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"} {/if}
__________________
NJB
Sydney, Australia
x-Cart Version 4.0.12
Reply With Quote