Drupal 7 views: Get NID in views using contextual filters Does anybody know how to get the nid from a node using contextual filters or filter criteria in views

WITHOUT using "Get id from url"? I was thinking about using PHP or getting it from a node-field.

My view is a block of comments that is to be placed together with a node. The comments needs to belong to the node and linked by node ID. In this case the "Get ID from url" wont work since the node itself is listed in another view.

It is a view-block (containing comments) inside of a node that is listed in a view.
If you are loading and displaying your view in the node.tpl or node--&lt;content-type&gt;.tpl file, you could supply the current node nid as an argument to your block view, then you can setup a contextual filter for Content: Nid. I would do something like this:

// get view
$view = views_get_view('YOUR_VIEW_NAME');
// set display for view
$view-&gt;set_display('YOUR_VIEW_BLOCK_NAME');
// set current node nid as argument to view
$view-&gt;set_arguments(array($node-&gt;nid));
// execute view
$view-&gt;execute();
// render view
print $view-&gt;render();