If I create the CCK text field 'Colour' with the following multi-select options:

re|red
gr|green
bl|blue
ye|yellow

they will be displayed in the node as:

Colour: re, gr, bl,

rather than:

Colour: red, green, blue etc.

Comments

chasz’s picture

did you find a solution??

you called the key instead of the value variable?

does anyone know the value variable name?

EDIT: on closer inspection, the key is the value and the label is what u need to use for the selection menu

Crell’s picture

Assigned: Unassigned » Crell
Status: Active » Fixed

It looks like the core formatters do what sjf describes, so I've updated this formatter to do the same. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.