Closed (duplicate)
Project:
Taxonomy List
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2007 at 07:21 UTC
Updated:
6 Feb 2007 at 20:37 UTC
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
Comment #1
moonray commentedDuplicate of 110924.