I would like to humbly suggest that 'drupal_lookup_path()' be used to get the URL Alias for the taxonomy term in the Taxonomy List module. It meshes better with the pathauto module that way. See below; (the commented lines are the original lines and the lines directly below those are the new ones).

  if ( $module_ok && $show_image ) {
      $cell .= '<div class="taxonomy-list-img-blk" '. ($img_blk_attr ? $img_blk_attr : '') .'>'
//            .  '<a href="'. base_path() .'taxonomy/term/'. $term->tid .'">'. taxonomy_image_display($term->tid, '') .'</a>'
            .  '<a href="'. base_path() .drupal_lookup_path('alias', 'taxonomy/term/'.$term).'">'. taxonomy_image_display($term->tid, '') .'</a>'
            .  '</div>';
    }

    $cell .= '<div class="taxonomy-list-txt-blk" '. ($txt_blk_attr ? $txt_blk_attr : '') .'>'
//					.  '<div class="title"><a href="'. base_path() .'taxonomy/term/'. $term->tid .'">'. t($term->name)  .'</a></div>'
          .  '<div class="title"><a href="'. base_path() .drupal_lookup_path('alias', 'taxonomy/term/'.$term->tid).'">'. t($term->name)  .'</a></div>'
          .  '<div class="description">'. t($term->description) .'</div>'
          .  '</div>';

I hope this helps a little.

James Addison
http://www.scottisheyes.com/

Comments

moonray’s picture

Status: Active » Closed (duplicate)

Duplicate of 110924.