Hi,

Actually I try to use Computed field to create a copy of a taxonomy CCK field (created with autocomplete).

What I do :

Computed code :

$node_field[0]['value'] = $node-> field_d_auteur[0]['value'];

The problem : The result of these request is the ID of the taxonomy term and not the term itsel. How can I do that ?

Thanks for your help !!!

Comments

vstmusic’s picture

Solution :

Computed code :

$temp_field_x_output = "";
$temp_field_x_term = taxonomy_get_term($node->field_x[0]['value']);
$temp_field_x_output .= check_plain($temp_field_x_term->name) ;
$node_field[0]['value'] = $temp_field_x_output;
mmjvb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)