By rewted on
I want to create a CCK field in my custom content type where the value (an integer select list) will display the appropriate image once selected. CCK fields allow for custom PHP, has anyone done this?
For example. Lets say I have a field named 'Transportation' with 3 value, car, truck, boat.
If 'car' is selected, then a predefined photo of a car is displayed on the custom node.
Can anyone show me how to do this?
Comments
You could probably do this
You could probably do this with a computed field
http://drupal.org/project/computed_field
_
You might also consider doing it with taxonomy and the http://drupal.org/project/taxonomy_image module.
Should be able to do it
Should be able to do it within the CCK field with PHP... I just don't know PHP. :)
Nobody?
Nobody?
Ever Get an Answer?
Did you ever find an answer to this problem or figure it out? Seems to me that this would be a new display formatter.
Yes thank you.
Yes thank you.
Has anyone solved this
Has anyone solved this feature already???