Taxonomy is also hidden from Contemplate
Open Publishing... - June 5, 2008 - 04:44
| Project: | Taxonomy hide |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
I want to prevent the taxonomy from being displayed, but still allow that taxonomy to be used in Contemplate with the $taxonomy variable. However, this module does both. If I choose to "hide" a taxonomy, it will also be unavailable to Contemplate.
I don't know if this is beyond your control, but it would be great to be able to only "hide" taxonomy from users, but still be able to use that taxonomy internally (eg. in Contemplate).

#1
hey man,
now we have a problem. the technique used to hide the taxonomy terms is to erase them from the array in the beginning of the process. Its needed because, otherwise, we would need to hide it in EVERY page/process that display the terms.
i dont have a clue how to fix this situation for you man, sorry.
regards,
massa
#2
Automatically closed -- issue fixed for two weeks with no activity.
#3
Since it is not fixed, wouldn't it make sense to keep the issue open? It would help others be aware of the problem, and also may prompt someone to look for a solution.
#4
David,
its by design and will not be fixed. Its not a bug.
regards,
massa
#5
maybe you want to do this
1. Open your theme and edit node.tpl.php then delete this code
<?php if ($taxonomy): ?><span class="taxonomy"><?php print $terms?></span><?php endif;?>OR.
1. Create custom template of your node based on content type(copy paste node.tpl.php and rename it to node-nameofyourcontenttype.tpl.php
2. Edit that node ex. node-contenttype.tpl.php then delete this code
<?php if ($taxonomy): ?><span class="taxonomy"><?php print $terms?></span><?php endif;?>Since this is the hard way you must backup your node.tpl.php or custom template of your node.tpl.php
=======================================
http://www.creativendor.com
http://www.autotradingfx.com
http://www.brokerforexindo.com
#6
@blucky - thanks for the suggestion. I hadn't even thought of that. The downside is that (I can't say for sure as I haven't tried it out yet) it seems it would prevent ALL taxonomy from being displayed, not just the certain taxonomy which has been marked hidden. I guess you could tweak the node.tpl.php file around a bit to only hide certain taxonomy.
So while it doesn't seem like an ideal solution, it could be a useful work-around depending on the situation.