View Single Post
  #2  
Old 01-25-2008, 09:48 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: How do i only show certain categories in menus

Quote:
Originally Posted by qrichou
I have been searching the forums for a solution to this and I have tried a few ideas to implement what I am trying to achieve but I cant get it to work.

I don’t want the root categories to show in the left menu or the top menu only the sub cats.

Basically we have our categories set out as below

Top menu (root)
cat1
cat2
cat3
cat4

Left menu (root)
cat1
cat2
cat3
cat4

I thought i could use the parent id in the categories.tpl to get the sub cats to show :
{if $allcategories[subcat].parentid eq 340} but this doesn’t work.

Hi,
see attached file. Hope it will helps u.
NOTE: it works ONLY with one-leveled subcategories (if need more I will be here )
Attached Files
File Type: tpl categories.tpl (1.0 KB, 87 views)
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote