View Single Post
  #1  
Old 11-15-2006, 02:58 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default Show subcategories on static page

I'm trying to figure out how I can show root categories and sub categories on a static page, so far I have managed to display the root categories by doing this:

Code:
{foreach from=$categories key=k item=c} <a href="home.php?cat={$c.categoryid}">{$c.category}</a> {/foreach}

But with what code can I display the sub categories?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote