View Single Post
  #4  
Old 02-28-2005, 04:45 PM
 
gbut gbut is offline
 

Newbie
  
Join Date: Feb 2005
Posts: 3
 

Default

Thanks folks. I've now ugraded to 4.0.12 so I can detect on
$current_category.parentid

Once detected though, I want to display the siblings - the parent category's children. In other words, subcats should display at both levels - standard expand/collapse behavior.

Whether in Animals section or Cats, display:
Code:
Animals Cats Dogs

When in parent (Animals) I can use:
{section name=subcat_num loop=$subcategories}

That works fine. I'm having trouble with displaying siblings. How do I reference the parent's subcategories?

This doesn't work:
{section name=subcat_num loop=$categories[cat_num].subcategories}
__________________
------------------
~Gregg

X-Cart 4.0.12
Apache 1.3.33
mySQL 4.0.22
PHP 4.3.10
Reply With Quote