obaluba2 |
02-26-2007 06:49 AM |
Strange 'Include' problem
Hi,
On my homepage, or in home.tpl I have the page hack so the featured product appears on the right in a box like 'authentication' or 'your cart' which works fine.
I have also got all the manufacturers listed on the homepage (in the middle where 'featured products' would have been originally..
Now this works too but only if i set the featured product to be switched off...if i set it to be visible then the list of manufacturers disappears... really weird!
If someone could take a quick look at my code I would appreciate it!
Code:
{* $Id: home.tpl,v 1.88.2.4 2006/10/13 10:41:21 svowl Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<html>
<head>
<title>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|strip_tags|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</title>
{include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" />
</head>
<body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}>
{include file="rectangle_top.tpl" }
{include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn">
<p>{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{include file="customer/categories.tpl" }
<br>
{include file="Services.tpl" } <br />
{/if}
{include file="payment_type.tpl" } <img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" /> </p>
</td>
<td valign="top" style="background-repeat: no-repeat; background-position:top center; background-image: url({$ImagesDir}/background.gif)">
<!-- central space -->
<p>{include file="dialog_message.tpl"}<br />
{include file="location.tpl"}{include file="customer/home_main.tpl"}
<!-- /central space -->
{include file="modules/Manufacturers/customer_manufacturers_list.tpl"} </p>
<p>
<br />
</p></td>
<td class="VertMenuRightColumn">
{include file="menu_featured.tpl"}{if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y' && $sns_collector_path_url ne ''}
{include file="modules/SnS_connector/button.tpl"}
<br />
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
<br />
{/if}<br />
{include file="customer/menu_cart.tpl" }
<br />
{if $login eq "" }
{include file="auth.tpl" }
{else}
{include file="authbox.tpl" }
{/if}
{include file="news.tpl" }
{if $active_modules.XAffiliate ne ""}
<br />
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka ne ""}
<br />
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
<br />
{include file="poweredby.tpl" }
<br />
<img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" />
</td>
</tr>
</table>
{include file="rectangle_bottom.tpl" }
</body>
</html>
{/if}
|