I’m trying to define a Display Suite Code Field which would be responsible for converting a list item key (selected in a dropdown on admin side) into an image on the output side. The field simply assumes the list keys:
series1|Series 1 Name series2|Series 2 Name
correspond to the images names and the tokenized field definition is as in:
<img class="product-series" src="/path/to/image/[node:field-product:field-series].png"/>
However what I got after replacement is the label (“Series 1 Name”), instead of the key. Is there a way to force the key replacement? (Yes I know I could drop the Label part, but this would not be admin friendly)
Sponsored by SupremePR