ok, been working on having the sub-categories display in a drop down menu.
I've actually got it working, it's not real 'pretty' yet but seems to work. What I can't seem to get is to display the current category image only.
here's the code if anyone is intrested in using it or helping me
Code:
{* $Id: subcategories.tpl,v 1.32 2003/04/24 09:50:33 svowl Exp $ *}
{ include file="location.tpl" }
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
{literal}
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function switchpage(select) {
// JavaScript function for switching to web page when user
// selects option from the given list box.
var index;
for(index=0; index<select.options.length; index++)
if(select.options[index].selected)
{
if(select.options[index].value!="")
window.location.href=select.options[index].value;
break;
}
}
// -->
</SCRIPT>
{/literal}
{ include file="customer/main/navigation.tpl" }
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":"
"}
{/if}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{if $tmp}
<SELECT NAME="url" onchange="switchpage(this)">
<OPTION VALUE=""> Choose Subcategory</option>
{section name=cat_num loop=$subcategories}
<OPTION VALUE="home.php?cat={ $subcategories[cat_num].categoryid }"> { $subcategories[cat_num].category_name|escape }</option>
{/section}
</SELECT>
{else}
{/if}
<br clear=_all><hr size=1 noshade>
{include file="customer/main/products.tpl" products=$products}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category_name|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" }