how to get the NodeID into views-view-field--field-image.tpl.php to create an  redirect this is my code: 

&lt;div class="img-wrapper"&gt;
  &lt;div class="content"&gt;

  &lt;?php $nodeurl = url('articles/' . $node-&gt;nid); krumo($node-&gt;nid); ?&gt;
  &lt;a href="&lt;?php echo $nodeurl ?&gt;"

    &lt;div class="img-container &lt;?php print $imageClass; ?&gt;"&gt;

    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


my code is not fetching a proper nodeID and when i krumo it (inspect passed elements) it brings back a null value. My code seems correct, can i get some help :)?
This is in a view correct? I believe you need to use node_load($nid) to load the node data first in order to fetch it. I would try something like this

$node = node_load($nid);
$nodeurl = url('articles/' . $node-&gt;nid);