I'm trying to exclude some categories from my news menu.
I've 'really' searched the forums but haven't found a way of doing it.
Eventually, I came up with this...
General .....(exclude)
Products ....(exclude)
.....sub_cat_a
.....sub_cat_b
Code: Select all
{news action="browsecat" browsecattemplate="mycats" summarytemplate="newslist"}
Code: Select all
{if $count > 0}
{foreach from=$cats item=node}
{if $node.news_category_name != 'General' && $node.news_category_name != 'Products'}
<a href="{$node.url}">{$node.news_category_name}</a><br>
{/if}
{/foreach}
{/if}
Code: Select all
<ul>
{foreach from=$items item=entry}
<li><a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}</a></li>
{/foreach}
</ul>
I would really appreciate if someone could point me at a 'better' (or more correct) way.
(I am not a programmer.)
Thanks
