It would be nice if this module can integrate the term icons from the taxonomy Image module.

If anyone as an idea for a hack, thanks

Comments

dgastudio’s picture

any update?

dgastudio’s picture

please help!

i added to taxonomyblocks.module:

 foreach ($tid_array as $tid) {
 $taxo_image = taxonomy_image_display($tid);
    $termname =  db_result(db_query("SELECT name FROM {term_data} WHERE tid = %d", $tid));
?>

and modified:

$tree[$termname]['link']['title'] = $taxo_image. $termname .' ('. $count .')';

but as result i have

<a href="/companies/term/76" title="company 1">&lt;img src=&quot;http://postavshik.by/sites/default/files/category_pictures/1.png&quot; alt=&quot;compan 1 &quot; title=&quot;company 1 &quot; width=&quot;70&quot; height=&quot;58&quot; class=&quot;taxonomy-image-term-76 taxonomy-image-vid-1&quot; /&gt;company 1 (1)</a>

that i'm doing wrong? where i have to insert $taxo_image?

moejarv’s picture

Really not sure if you still need answer to this...
You need to add an option " html = true" to the $tree array, so the l function will spit out the img tag.

Add this line somewhere in the taxonomy_recursive_array_builder
$tree[$termname]['link']['options']['html']=true;

And thanks for your lead! without it I won't find out how to do this!