I'm using CCK fields in my drupal node type. There's a field called field_signs, which is type Text / Checkboxes and it contains some values. What i want is to print those values in node template. But i don't know how to do this. I tried this:
<?php
echo $node->field_signs[0]['value'];
?>
But this prints ONLY the first checked value from all checked values.
Any idea?
Thanks
// EDIT // Maybe i found a solution.
<?php
$i = 0;
while (!$end) {
if(array_key_exists($i, $node->field_test)) {
echo $node->field_test[$i]['value'];
$i++;
} else {
$end = TRUE;
}
}
?>
If you have better solution, feel free to share with me.