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

Comments

tjharman’s picture

Component: Code » Contrib Node Display
e_log’s picture

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.

tjharman’s picture

Thank you - removing that code fixes the problem.

nancydru’s picture

tjharman’s picture

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

nancydru’s picture

Title: When "Link displayed Taxonomy Image to taxonomy/term/n page" is checked, text also appearing next to image. » Option to show term name next to image.
Category: bug » feature

It seems that perhaps it should be an option.

scrubba’s picture

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.

nancydru’s picture

It will be when I have the time to get to it (unless someone wants to pay for it, which would bump its priority).

nancydru’s picture

Status: Active » Fixed

Committed to both branches.

nancydru’s picture

Status: Fixed » Closed (fixed)

Clearing the queue a bit.