I have a custom view mode created with ds module, this view mode lists node articles, each article displays like this :
- term reference field
- some other fields...
I want to add some style condionally depending on the term reference field For example: the first article has the term reference with the value "1", I change the backgroud of the this article to "red" the second article has the term reference with value "2", I change the backgroud to "green" ...
this is an image how look like the manage display of some fields :
My interest is with the Flag field: It's a taxonomy field reference having (title, color (hexadecimal value), description...) This flag field as you see has the formatter 'editable' (done with editablefieds module), so editors can edit the value of this field.
Now I want to add another field next to Flag witch is the color field of the current Flag taxonomy term, and render for example a simple
div with some
height and with the
backgroun-color, this color field
Hope it's more clear than the old post :)
Thanks in advance.