Re: Hiding categories
Well, I seem to be making this harder than it should be.
This is the original code.
<ul>
{foreach from=$categories_menu_list item=c}
<li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li>
{/foreach}
</ul>
{assign var="additional_class" value="menu-categories-list"}
This is what I did
<ul>
{foreach from=$categories_menu_list item=c}
{if $categories[cat_num].categoryid eq XXX}
<li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category}</a></li>
{/if}
{/foreach}
</ul>
{assign var="additional_class" value="menu-categories-list"}
If I put any id, other than 0 in the place of XXX, all the categories are dropped. Am I missing something obvious?
Thanks for your help.
__________________
Joe Holley
4.2
|