Add link to view data if no matching record I have a view that shows taxonomy terms with a relationship to show nodes that have a term reference to that term (relationship not required, aka LEFT JOIN).

For terms that don't have a matching node I would like to show an "add content" link.

The usual "no results" behavior doesn't seem work in this situation. What's the trick?
Views PHP to the rescue:

&lt;?php
if (is_null($row-&gt;nid)){
    print '&lt;a href=node/add/mytype?edit[field_mytype][und]='.$row-&gt;tid.'&gt;add node for this term&lt;/a&gt;';
}
?&gt;


I can even pass the tid through the URL and have it prepopulated on the form (using prepopulate).