I have a view which displays nodes of content type "news", which has two fields: f_one and f_two. What I want is:
- If f_one has content and f_two is empty, display only f_one
- If f_one is empty and f_two has content, I want to display only f_two
That's easy: I just click both the fields in the view settings to display them. When any of them has content they are displaying. But what if I want to display only f_one when f_one has content and f_two has content? How can I do it?
In this way both fields are displaying, but I want only f_one. I guess I could use filters but I don't know how. Should I use some global variables?