inVINCEible,
How did you get the sub-categories to stay after a person clicks them. Did you have to make any other modifications?
The categories and sub-categories are displaying correctly but if you click a sub-Categorie only the main categories are showing. The Sub-Categories disappear.
Code:
<TABLE border=0 cellPadding=2 cellSpacing=0 width=100%>
<tr>
<td colspan="2" align="center" class="VertMenuTitle">[img]{$ImagesDir}/category.gif[/img]</td>
</tr>
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<tr>
<td height="15" valign="middle" class="VertMenuBox">
<p align="left"><a href="home.php?cat={ $categories[cat_num].categoryid }"> {
$categories[cat_num].category|escape }</a></td>
</tr>
{if $cat eq $categories[cat_num].categoryid} {section name=subcat_num loop=$subcategories}
<tr>
<td height="15" valign="middle" class="VertSubMenuBox">-<a href="home.php?cat={ $subcategories[subcat_num].categoryid }">{
$subcategories[subcat_num].category|escape }</a></td>
</tr>
{/section}
{/if}
{/section}
{/if}
</table>