Re: Back to Basics - How do I get SubCats on Left Nav?
Tried this but the site would only load the header, nothing else:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *}
{capture name=menu}
{if $active_modules.Fancy_Categories ne ""}
{include file="modules/Fancy_Categories/categories.tpl"}
{assign var="fc_cellpadding" value="0"}
{else}
{if $config.General.root_categories eq "Y"}
{foreach from=$categories item=c}
{if $cat eq $c.categoryid || $current_category.parentid eq $c.categoryid}
<font class="CategoriesList"><b><a class="current" href="home.php?cat={$c.categoryid}">{$c.category}< /a></b></font><br>
{else}
<font class="CategoriesList"><a href="home.php?cat={$c.categoryid}" class="VertMenuItems">{$c.category}</a></font><br>
{/if}
{assign var=in value=$c.categoryid}
{foreach from=$allsubcategories.$in item=c }
{if $cat eq $c.categoryid}
    <a href="home.php?cat={$c.categoryid}" class="SubCategoriesList">{$c.category}<br></a><br>
{/if}
{/foreach}
{else}
{foreach from=$subcategories item=c key=catid}
<a href="home.php?cat={$catid}">{$c.category}</a>
{/foreach}
{/if}
{/if}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding}
I see some closing statements that look to be too many, but can't figure it out pass this point. Any suggestions?
Thanks!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
|