By petrasadi on
I need to display the suffix of a field, based on the value of a different field of the content type.
Specifically, I have a Product content type which has:
- a price_type list(integer) field ( with values - 1|Per lb, 2|Per peice )
- a price decimal field which has defined a suffix "/lb"
Is there a way to display the price suffix only for Products that have a "Per lb" value in the price_type?
I've looked around, but not sure how to solve this.
Comments
Any ideas?
Any ideas?
_
Probably the easiest way would be to override the default field output with a custom template file. See http://drupal.org/node/341628 and http://drupal.org/node/1089656#field-suggestion for more info.