I have a Contextual filter: Content: Nid in Views3 that I want to return the TNID instead of the NID When the filter value is NOT available.
I tried
$node=node_load($argument);
$argument = $node->tnid;
return $argument;
or
$node=node_load(arg(1));
$argument = $node->tnid; // bzw. $argument(1) = $node->tnid;
return $argument;
and others from inside the Provide default value:PHP Code Field. Nothing worked.