Boomer, Hate to do this but can't get it without a parse error. When I follow the example code you gave, it ain't working. What would I be doing wrong?
This is the code that I am using:
Code:
{* $Id: subcategories.tpl,v 1.21 2002/09/10 12:36:34 zorg Exp $ *}
{ include file="location.tpl" }
{ include file="customer/main/navigation.tpl" }
<p align="center">
{if ($page eq "")||($page eq "1")}{$current_category.description|regex_replace:"/
[\n]/":"
"}
{/if}
<p align="center">{capture name=dialog}
{if $subcategories}
[img]../icon.php?categoryid={$cat}[/img]
{/if}
</p>
{if $current_category.categoryid eq 282}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="F8F9F9"><div align="left">[img]http://www.oceansbridge.com/img/monet-bio-intro1.gif[/img]</div></td>
</tr>
<tr>
<td bgcolor="F8F9F9"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1"
bgcolor="375d7e">
<tr> </tr>
</table>
<hr noshade></td>
</tr>
</table>
{elseif $current_category.categoryid eq 123}
{include file="file_with_code2.txt"}
{else}
{section name=cat_num loop=$subcategories}
{ if %cat_num.first% }
{/if}
<table border=0 cellspacing=5 width=95%>
{section name=subcat loop=$subcategories}
{if $smarty.section.subcat.index is div by 3}
</tr><tr align="center" valign="top">
{/if}
<a href="home.php?cat={ $subcategories[cat_num].categoryid }"><font
class="TableCenterSubCategoryListTitleBlue">{
$subcategories[cat_num].category|escape }</font></a>
</td>
<td align=right nowrap><font class="TableCenterSubCategoryListQuantityBlue">{
$subcategories[cat_num].product_count } {$lng.lbl_products}</font></td>
</tr>
{ if %cat_num.last% }
</table>
{/if}
{/section}
{/if}
{if $subcategories ne "" and $products ne ""}
<hr size=1 noshade>
{/if}
{include file="customer/main/products.tpl" products=$products}
{if $products eq "" and $subcategories eq ""}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl"
title=$current_category.category|regex_replace:"/.*\//":""
content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}
{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }