View Single Post
  #2  
Old 05-29-2011, 08:32 PM
 
hollaratbear hollaratbear is offline
 

Advanced Member
  
Join Date: Nov 2009
Posts: 37
 

Default Re: Show only sub-categories in left sidebar?

New problem. Nevermind the previous...changed categories.tpl to this

Code:
{* $Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} {if $active_modules.Fancy_Categories} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="additional_class" value="menu-fancy-categories-list"} {else} <ul> {foreach from=$subcategories item=subcat} <li> <a href="home.php?cat={$subcat.categoryid}">{$subcat.category|escape}</a> {/foreach} </ul> {assign var="additional_class" value="menu-categories-list"} {/if} {/capture} {include file="customer/menu_dialog.tpl" title=$lng.aisles content=$smarty.capture.menu}

Now the problem is that when I click a menu item that has no sub-categories, my menu disappears. I guess what I'm looking for is a statement that says "if there are no subcategories, show all subcategories of this subcategory's parent. Does that make sense? If I click a 2nd level that has only products and no 3rd level categories, I only want to display the other 2nd level categories of the parent in categories.tpl. Can anyone help?
__________________
hollaratbear
Xcart Gold 4.2.1 Newbie
Reply With Quote