Closed (fixed)
Project:
Content Taxonomy
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2007 at 14:30 UTC
Updated:
20 Feb 2010 at 05:39 UTC
You can check the example from this url;
http://www.hecatomber.org/film_incelemeleri/rang_de_basanti
in the page;
"Yönetmen, Tür, Oyuncular, Dil" are autocomplete fields which can allow multiple inputs.
All i want is to make those links "comma separated"
as you can see; "Yönetmen, Tür, Dil" are viewed as text and they are comma separated.
But the "oyuncular" field is chosen to be viewed as link, and instead of comma it has a
tag between.
How can i overcome this problem?
Comments
Comment #1
korayal commentededit: But the "oyuncular" field is chosen to be viewed as link, and instead of comma it has a
<br />tag between.Comment #2
korayal commentedFound the answer on content_taxonomy.module
changed the line 199 to;
$output .= l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description)) .", ";;Comment #3
chadchandler commentedThis was very helpful. Please move this over to the Content taxonomy module as this has nothing to do with Contemplate :)
Comment #4
Raving commentedComment #5
manoloka commentedFor some reason I don't understand the line numbers mentioned never match my line numbers ????
Anyway, just wondering if 199 is supposed to be
return implode('<br />', $terms);(for me the above is 208)
Comment #6
korayal commentedcan it be because of the message dates?
Comment #7
manoloka commentedI don't know, maybe . . . but don't worry about that.
What I need to know is if
return implode('<br />', $terms);is the bit to be replaced by
$output .= l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description)) .", ";;is it?
Comment #8
manoloka commentedI don't know, maybe . . . but don't worry about that.
What I need to know is if
return implode('<br />', $terms);is the bit to be replaced by
$output .= l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description)) .", ";;is it?
thanks
Comment #9
ckngInstead of modifying module, this is the proper way to theme CCK field, including content taxonomy
- Place the modules/cck/theme "field.tpl.php" and "template.php" files in your theme's folder. If you already have a "template.php" file, you will need to append the code in this one to your own.
- Add a new file "field-field_myterm.tpl.php" where field_myterm is the CCK field name, with the following code
Comment #10
abaddon commentedthere is a simpler fix from the theme, see http://drupal.org/node/134306#comment-2622670