I have a view filtering out a specific node by nid, and it was working until I added a relationship. I want to filter based on the nid of the target of the relationship, not the base table nid. Here is my code, pre-relationship:
$options = array( 'operator' => '!=', 'value' => array('value' => $nid), ); $view->add_item ($display_name, 'filter', 'node', 'nid', $options);
I tried replacing
nid with the view relationship base field alias, but that didn't seem to be recognized at all. How do I indicate to Views that this filter should work via the relationship?