Hello
In CGBlog, I would like to hide (or exclude) a specific category from "action=browsecat," Is there a simple way of doing this ?
Thanks
Henri
CGBlog: hide category from browsecat
Re: CGBlog: hide category from browsecat
Anyone could help me on that ?


Re: CGBlog: hide category from browsecat
Have you tried category=one,two,three there is an exclude category parameter but it doesn't work with action=browscat, I sponsored the notcategory="" maybe you can sponsor it being changed to work with action=browscat...
Re: CGBlog: hide category from browsecat
I know this is an old thread but I stumbled across it and I guess someone else might do the same.
To hide a category just alter the 'Browse Category' template:
As you can see above, I have given the list element a class of {$one.name}
Therefore, each bullet will classed as whatever the category name is. Then just use CSS...
Easy 
To hide a category just alter the 'Browse Category' template:
Code: Select all
<ul>
{foreach from=$categories item='one'}
<li class="{$one.name}"><a href="{$one.url}" title="{$one.name}">{$one.name}</a> ({$one.count})</li>
{/foreach}
</ul>
Therefore, each bullet will classed as whatever the category name is. Then just use CSS...
Code: Select all
.categoryname {
display: none;
}

-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: CGBlog: hide category from browsecat
<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>
{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>
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.