Hi folks,
first of all thank you for this great module!
I´m using taxonomy hide on my site to disable the display of certain taxonomy terms. Right now, every vocabulary is turned off and won`t be shown in node view. Ok, deleting the appropriate section in node.tpl.php would also be an optin, but in this case i want to be flexible and, if needed, selected terms can be displayed in nodes in the future.
For the last one hour i was now trying to get header image to work in this setup with taxonomy hide. And it turns out that if taxonomy hide is enabled, the header image won`t be displayed on neither node. If i disable taxonomy hide, the header image appears as requested. Out of curisosity i deleted the "term" section in node.tpl.php to shut off the display of terms - et voila: header image appears on the corresponding nodes.
I`m not yet familiar with the code of both modules and right now i can`t figure out if it`s a problem of taxonomy hide or header image but perhaps i`m right with this issue and it can be fixed in header image.
Versions: Drupal 6.10, taxonomy hide 6.x-1.02, header image 6.x-1.x-dev
Best wishes
Steve
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | headerimage-taxonomyhide-403976-1.patch | 651 bytes | sense-design |
Comments
Comment #1
bimmelim commentedComment #2
skizzo commentedI confirm the problem, and add some more info in case it helps. On my system Taxonomy Hide is enabled but I am not actually hiding any vocabulary (I just take advantage of Taxonomy Hide's other feature, i.e.: group terms by vocabulary). When meeting the taxonomy condition for a given node I see the following behaviour:
- image will display as expected on node edit form
- image will not display on node view
Disabling the "group by vocabulary" feature in Taxonomy Hide will bring operations back to normal.
Comment #3
sense-designThe taxonomy hide module implements hook_nodeapi where the taxonomy keys get unset when they are marked as hidden, therefore the headerimage module can not access the taxonomy keys assigned to the node object, because these got unset.
You have to modify the "headerimage_eval_taxonomy()" function, check if taxonomy hide module is active and instead of getting the node object via menu_get_object() you need to do a node_load().
Try attached patch against 6.x-1.x
Comment #4
sense-designComment #5
sense-design