By surgeonbor on
I have a view that takes a single tnid as an argument. I want the view to display the translated node in the "current language." I understand how to do this, generally, but here's the problem: Say I pass the argument 1234 (i.e. tnid=1234). If node 1234 does not have any translations, then the tnid is 0, so nothing will be displayed. How can I set up a view that accounts for both of these possibilities:
1) The node has translations and therefore I can use "Node translation: Translation set node ID" as the argument.
or
2) The node has no translations and therefore the argument should be treated as an nid.
Thanks.