I have a CT on which I have a field called
monetary-type which is of type
List (text) and its "Allowed values list" is:
EUR|Euros USD|Dollars GBP|Pounds
When this field is rendered from a view (FORMAT: Show: Fields) it's being rendered as:
<span class="views-field views-field-field-monetary-type"> <span class="field-content">Dollars</span> </span>
When rendered from a node view it shows as:
<div class="field field-name-field-monetary-type field-type-list-text field-label-above field-wrapper"> Dollars </div>
For both those 2 cases I'd like to also have a class with the selected value, in this case
value-USD, appended into the classnames of the wrapper.
What is the easiest (non intrusive) way I can achieve this? Ideally without having to touch existing views or node displays.
I use https://www.drupal.org/project/zurb_foundation if it matters.