I'm struggling to theme the output from a CCK float checkbox using node.tpl.php

Its set to 2 values, not required, allowed values 0|Right 1|Left and its hidden in display settings.

<print_r();?> Gives me:

[field_direction] => Array
                (
                    [0] => Array
                        (
                            [value] => 0
                            [view] => Right
                        )

                    [1] => Array
                        (
                            [value] => 1
                            [view] => Left
                        )

                )
<?php print $node->field_direction[0]['view']?>
<?php print $node->field_direction[1]['view']?>

doesn't produce anything.

So what do I need in node.tpl.php?

Many thanks

Comments

rbriskie’s picture

If it's excluded/hidden in your field's display settings, it will be hidden. Common sense.