View Single Post
  #1  
Old 05-09-2004, 10:21 AM
 
mlfnet mlfnet is offline
 

Member
  
Join Date: Apr 2004
Posts: 12
 

Default Pictures in recommends.tpl for 3 column format

I was looking around the forums to display pictures in the recommends.tpl and came across some code, but it had prices and was setup for 1 column. I edited it so it would display in a 3 colums with just the picture and title.


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}

Hope this helps some of you out. It could probably stand to be cleaned up a little. I just hacked it enough to make it do what I needed it to do.
Reply With Quote