View Single Post
  #17  
Old 04-11-2005, 11:07 AM
 
flamers flamers is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 51
 

Default

The original 3 column recommends code works fine in V4 (my version anyway), but it looks a bit clumsy as is because it squashes the item title against left hand side. It's easily fixed, here's the original code:

Code:
{* $Id: recommends.tpl,v 1.3 2004/03/01 16:26:00 salsabeel Exp $ *} {if $recommends} {capture name=recommends} <table border=0 width=100%> <tr> {section name=num loop=3} <td width=90 align=center valign=top> {$recommends[num].product}</font> </td> {/section} </tr> </table> {/capture} {include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"}{/if}

Just modify the first part to this:

Code:
{if $recommends} {capture name=recommends} <table border=0 width=100%> <tr> {section name=num loop=3} <td width=200 align=center valign=top>

et voila, just by changing the table width to 200 the title stretches all the way under the thumbnail.
__________________
X-Cart V 4.0.18
Reply With Quote