Option to show term name next to image.
tjharman - January 2, 2009 - 16:59
| Project: | Taxonomy Image |
| Version: | 6.x-1.5 |
| Component: | Contrib Node Display |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When I tick this option with the new in version 6.x-1.5, I also get text next to the image that's the taxonomy name of the link.
Is this text supposed to appear? The image is linked correctly to the taxonomy, but the text is unwanted.
Can provide a screencap if necessary.
Tim

#1
#2
I think some wrong code in taxonomy_image_node_display.module is the cause of this problematic behavior:
/** Theming function to allow overrides at theme level
*/
function theme_taxonomy_image_display($image, $term) {
return l($image, 'taxonomy/term/'. $term->tid, array('html' => TRUE, 'attributes' => array('class' => 'taxonomy_image_links'))) . $term->name;
}
. $term->name needs to be removed.
#3
Thank you - removing that code fixes the problem.
#4
See #352033: Term Image and Name?
#5
Thanks NancyDru. I reported it only because it seemed "wrong" to me. If this is the intended behaviour, this bug can be closed.
Thanks,
Tim
#6
It seems that perhaps it should be an option.
#7
Oh this one had me stumped for ages.
It appeared after a full upgrade and I thought it was a CKK or views 2 issue.
I am very happy I found this thread,
and
thanks for posting the fix
and
I agree very much that this should be an option.
#8
It will be when I have the time to get to it (unless someone wants to pay for it, which would bump its priority).
#9
Committed to both branches.
#10
Clearing the queue a bit.