View Single Post
  #1  
Old 01-04-2006, 01:22 PM
  techdesign's Avatar 
techdesign techdesign is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 30
 

Default Custom Category and Subcategory Menu Blocks

I am trying to create a custom menu block that displays depending on what the root category the user is browsing.

So far I have came up with a few ways to display the custom menu when they are in a specific category, but when they browse to a subcategory - the menu is gone.

Here are the different ways I have found so far, but again it only works for the current category that they are in:
Code:
{if $current_category.category eq "Livestock"} { include file="customer/menu_livestock.tpl" } {/if} {if $current_category.categoryid eq "2"} { include file="customer/menu_horse.tpl" } {/if} {if $cat eq "3"} { include file="customer/menu_pet.tpl" } {/if}

How can I create something like this, but will work acrosss the subcategories of the specific root category?

Also there is only 3 root categories if that makes it simple...
Reply With Quote