Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.8
Component:
optionwidgets.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2012 at 18:26 UTC
Updated:
27 Jan 2012 at 18:26 UTC
Normally, when I need to access the value for a CCK field in a node template, I'll use something like $node->field_fieldname[0]['view']
For "Text" fields using the "Check boxes/radio-buttons" widget, this gives the field label. How can I get the field key instead?
I'm using the words key and label as used in the "Allowed Values" fieldset, e.g.
key1|label1
key2|label2
key3|label3