Is there anyway to get Taxonomy Image to play nice with Display Suite? I'm particularly interested in the TaxImg's Link alter sub-module. On any nodes I have using Display Suite, the taxonomy links are not altered. Any nodes not using display suite feature altered taxonomy links.

I didn't know if this was best placed in DS's issue queue or here so feel free to move this issue if it belongs elsewhere.

Comments

kpojeta’s picture

Also interested in getting Taxonomy Image to work with Display Suite...

wouters_f’s picture

more specific detail:

-> When you add the 'all terms' nd field The terms are replaced by an image.
-> when you specify a specific vocabulary, the altering is forgotten.
I know this fix is quite dirty and not to use but it temporarily fixes this problem.
maybe in the future there should be a hook there or a theme call?
or it could be that i just don't see it?

/*nd.module*/

function nd_terms_per_vocabulary($field) {
 ...
    $linked = prev($formatter_explode);
    $preset = variable_get('taxonomy_image_link_preset', variable_get('taxonomy_image_imagecache_preset', 'ORIGINAL'));
    foreach ($field['object']->taxonomy as $tid => $term) {
      if ($term->vid == $vid) {
        $taxo_image = taxonomy_image_display($tid, NULL, $preset, array('wrapper' => FALSE));
          if ($taxo_image) {
      }else{
      $taxo_image = $term->name;
      }
       $terms[] = ($linked == 'linked') ? l($taxo_image, taxonomy_term_path($term),array('html'=>true)) : check_plain($term->name);
      }
    }
    if (!empty($terms)) {
      $content = implode($separator, $terms);
    }
  }
  return $content;
}
jddeli’s picture

How do you fix it?