By gilbertdelyon on
Problem in cck field theming :
I have a cck field and select list "key|value"
01|text1
02|text2
03|text3
etc
In the node theme I can only display «key», but not «value»
For example
<?php print $node->field_myfield['fr'][0]['value'];?>
Will display «02» while I had like «text2»
When I display the full node content with
<?php print_r($node);?>
I can find «02», but nowhere «text2».
Thanks in advance for your help
Comments
Hi, I think that you can use
Hi, I think that you can use $field_myfield['fr'][0]['view'] or $node->field_myfield['fr'][0]['view'] (in this moment I can not check for it).
M.
Freelancer Senior Drupal Developer -- http://www.ziobuddalabs.it
In the meantime I found 2
In the meantime I found 2 ways to display "value" instead of "key"