View Single Post
  #11  
Old 12-04-2003, 07:15 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default

Quote:
"funkydunk"]Actually...here's the code for include/categories.php:

Hi Funkydunk,

I'm trying to display all categories as a tree.
How do you process subcategories in the loop?
Here is my "categories.tpl"

Code:
{section name=cat_num loop=$categories} <div id='menuLabel{%cat_num.index%}' class='menuLabel'>{ $categories[cat_num].category_name|escape }</div> <div id='menu{%cat_num.index%}' class='menuBox'> {section name=subcat_num loop=$subcategories} { $subcategories[subcat_num].category_name } {/section} </div> {/section}

loop=$subcategories is not correct. Is it possible to loop only subcategories for this category here with mod to categories.php you posted?[/quote]
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote