By xDreamer on
When viewing a node a link will be displayed for the taxonomy term. Since my site is written in non-English language, and since I wrote the term names in English (for url purpose) and term descriptions in my non-English language, I would like to override the taxonomy_link function in the 'taxonomy.module' file and be able to display the link with the term description instead of the term name. I found a way to do that by changing:
'title' => $term->name,
in line 34 in 'taxonomy.module' to:
'title' => $term->description,
However, this method is not very efficient as I have to do it every time I update Drupal.
I am very poor at overriding functions, I tried but it seems very technical to me. So all help is appreciated.
Comments
Thanks. Solved.
Thanks for everyone who replies to any post in these forums.
I found this page: http://drupal.org/node/133223 .
I changed the 'name' to 'description' in:
$term->nameand:
$vocab->name;and it worked!
This way I will not have to change anything in the taxonomy file, just upgrade to any new version while keeping the theme.