I have a cck field which needs to show text values (both selection and viewing) to the users, but makes more sense to store as a decimal value for use by a computed field. Is there a way to show the keys rather than the values on output?

I suspect keys only exist on the selection list widget, and not in cck itself... Can anyone confirm this, or give me some pointers on how to go about doing this?

Comments

kafka93’s picture

I'm running into the same issue, I think. We store integers so that we can sort on them, but need to display the text values in the view (table mode). This is pretty major for us since we're looking to launch the new site within the next week or two.

RoboPhred’s picture

Category: support » feature

Bumping to feature request, as it doesn't look like this is possible as-is.

karens’s picture

Status: Active » Fixed

If you're talking about Computed Fields, your question belongs in that queue. I believe all the core CCK fields that have keys and values have a 'plain' formatter that will show the raw value. And any module can add a formatter to do whatever else you want to do.

Status: Fixed » Closed (fixed)

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