CGBlog: Hide categories from browscat
Posted: Wed Aug 19, 2015 4:04 pm
I would like to be able to exclude a category from the browsecategory template. Below is the code from this post: http://forum.cmsmadesimple.org/viewtopi ... =7&t=63400
The code works great, but I can't figure out how to include the child categories in this code.
<ul>
{foreach from=$categories item='one'}
{if $one.name != 'foo'}
<li class="{$one.name}"><a href="{$one.url}" title="{$one.name}">{$one.name}</a> ({$one.count})</li>
{/if}
{/foreach}
</ul>
The code works great, but I can't figure out how to include the child categories in this code.
<ul>
{foreach from=$categories item='one'}
{if $one.name != 'foo'}
<li class="{$one.name}"><a href="{$one.url}" title="{$one.name}">{$one.name}</a> ({$one.count})</li>
{/if}
{/foreach}
</ul>