Hi Hyperdelicious,
The following is not mine, but I've got it from the forum (but I can't find the thread at the moment).
Same as you I've got the main navigation in the header. Clicking on one of these categories brings up the subcategories in the left menu. One problem I'm having is that it only shows the first level of subcategories - no deeper levels of subcategories. Another (but smaller) problem is that it won't display the categorie name above the subcategories.
I did the following:
In /skin1/customer/categories.tpl:
Code:
{if $current_category.category ne "" and $config.General.root_categories ne "Y"}
{ include file="customer/subcategories.tpl" }{/if}
Then I made a new file in that same folder /skin1/customer/categories.tpl and called it: subcategories.tpl
Code:
{* $Id: subcategories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *}
{capture name=menu}
{section name=cat_num loop=$allcategories}
{if $allcategories[cat_num].parentid eq $location[1].1|replace:"home.php?cat=":""}
<table border="0" width="100%" class="SubMenuOff" onMouseOver="this.className='SubMenuOn'" onMouseOut="this.className='SubMenuOff'" id="table2" cellspacing="0" cellpadding="0"><a href="home.php?cat={ $allcategories[cat_num].categoryid }">
<tr>
<td width="100%" height="18">
{ $allcategories[cat_num].category|escape }</font>
{ $allcategories[subcat_num].category|escape }</font>
</td>
</tr>
<tr>
<td height="1" bgcolor="#FFFFFF" width="100%" colspan="2">
</tr>
</table>
{/if}
{/section}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_subcategories menu_content=$smarty.capture.menu }
You have to tweak the above to your own layout, because I'm using (css)rollovers.
If somebody knows the solution for displaying not only the first level, but also the deeper levels, please let me know!
Good luck, Hyperdelicious!
