View Single Post
  #4  
Old 08-25-2004, 04:41 AM
 
PoloJohn PoloJohn is offline
 

Member
  
Join Date: Aug 2004
Posts: 14
 

Default

sorry to hijack but to list catergories like this

Main
Sub A
Sub B
SubC
Main 2
Main 3

so that the active one shows the sub cats then what wud i need to do, heres my code

Quote:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"}
{else}
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>

{/section}
{else} {section name=cat_num loop=$subcategories}
<FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT>

{/section}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
__________________
www.anything-cars.com
Reply With Quote