5.x version has this feature. 6.x does not?
Or did I miss something?

CommentFileSizeAuthor
#2 taxonomy_image_link.patch681 bytesjolidog

Comments

rudins’s picture

Status: Active » Needs review

No, I did not miss.

Changed line 170 to:

$new_tree[$tid]->image = $taxo_img ? l(taxonomy_image_display($term->tid, NULL, NULL, array('wrapper' => FALSE,)),$term_path, $options = array('html' => TRUE) ) : NULL;

and I got links.

jolidog’s picture

StatusFileSize
new681 bytes

Thanks rudins!
I've changed a bit of your code to maintain the div wrapper and created a patch.

I didn't find any abnormal behavior, and everything is working fine.
Maybe it will get in 6.x-2.0-rc2...

Perhaps NancyDru is thinking of making this an option, but until there is a checkbox, in my opinion, this behavior should be the default.

vitis’s picture

Thank you!

nancydru’s picture

There is a similar feature in #501848: Make images a link. Please compare the solutions and see if they achieve the same result.

nancydru’s picture

Status: Needs review » Fixed

Committed to 6.x-2.x-dev

jolidog’s picture

Nice!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.