Does anyone know the smarty (database) code to display the subcategories under the categories menu as shown in my hor_categories.tpl?
The php code for the categories menu is shown in red. The section for the subcategories is shown in orange.
If anyone knows the database code to display the subcategories I would greatly appreicate it.
Code:
{* $Id: hor_categories.tpl,v 1.4.3.2 2007/05/12 12:15:08 max Exp $ *}
{**** Horizontal categories ****}
<script type="text/javascript">
{literal}
function hcCheckCategories() {}
{/literal}
</script>
{assign var="columns_num" value=#ColumnsInHM#}
<div class="pdmenu">
<ul>
<!-- CSS Tabs -->
{foreach from=$categories item="category" name="h_categories" key="key"}
{math equation="x+1" x=$hc_counter|default:"0" assign="hc_counter"}
{if $hc_counter <= $columns_num }
<li><a href="home.php?cat={$category.categoryid}" class="hcLink"><span>{$category.category}</span></a>
<ul>
<li><a href="" class="hcLink"><span></span></a></li>
</ul>
</li>
{if $smarty.foreach.h_categories.last && !$js_enabled}
{assign var="fit_all" value="Y"}
{/if}
{/if}
{/foreach}
{if !$fit_all }
Thanks for any help on this.