View Single Post
  #1  
Old 12-05-2012, 03:36 PM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Modify Layout of Manufacturers Page

I want to modify the layout of the Manufacturers page. The default layout is an unordered list of just the manufacturer names. The relevant default code inside /common_files/modules/Manufacturers/customer_manufacturers_list.tpl is...

Code:
<ul class="manufacturers-list list-item"> {foreach from=$manufacturers item=v} <li><a href="manufacturers.php?manufacturerid={$v.manufacturerid|amp}">{$v.manufacturer|escape}</a></li> {/foreach} </ul>

I stole some code from the customer_manufacturer_products.tpl file in order to get the manufacturer logos to show. Code now looks like this...

Code:
<ul class="manufacturers-list list-item"> {foreach from=$manufacturers item=v} <li> <a href="manufacturers.php?manufacturerid={$v.manufacturerid|amp}"> <img src="{if $v.image_url ne ''}{$v.image_url|amp}{else}{$xcart_web_dir}/image.php?id={$v.manufacturerid}&amp;type=M{/if}" alt="{$v.manufacturer|escape}"{if $v.image_x} width="{$v.image_x}"{/if}{if $v.image_y} height="{$v.image_y}"{/if} /> {$v.manufacturer|escape} </a> </li> {/foreach} </ul>

What I REALLY want is to have these logos + text links for each manufacturer to be in a table format (rows and columns) so you don't have to scroll down so far to see them all. I would be willing to hardcode the number of columns fi the rows were dependant on the number of manufacturers defined.

Can anyone help with this formatting? Please.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote