Hello,

<php
return $node->field_xxx[$node->language][0]['value'];
?>

returns a "value" like "2" or "4" because the field is built like that :
1|one
2|two
3|three
4|four
...
In fact, I get the "key", not the real "value" (one, two, three, four...)

When using the common token [node:field_xxx], that's better : I get the value "two" or "four" but always in source language.
BUT not the translation I made of each item, even if I'm into the translated edit page.

Comments

gaurav.kapoor’s picture

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