Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Questions (/forumdisplay.php?f=67)
-   -   Is it possible to hide particular categories in the category widget? (/showthread.php?t=3578)

badm00n January 10th, 2011 04:48 PM

Is it possible to hide particular categories in the category widget?
 
I know I can hide a category altogether in the factory but I still want it's normal functionality. I just want it hidden from the category widget display if possible.

Thanks.

Eric January 10th, 2011 04:53 PM

I don't think this is possible.

badm00n January 15th, 2011 04:52 PM

Could you make an if statement in the widget view that says

[category.if id='category_id'] then not spit on an <li> ?

Eric January 15th, 2011 04:58 PM

That's a good idea. Here's the statement you would need. I just tested it and it works perfectly. This is where the category to exclude has category ID 514577.

PHP Code:

<?php if ($category->id != 514577) { ?>
<li><a href="...">[category.name]</a></li>
<?php ?>


badm00n January 15th, 2011 08:31 PM

YESS! perfect. Thanks so much.


All times are GMT -5. The time now is 01:09 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.