How to print a field content link in the views-view-field template in Drupal 7? I am trying to figure out if it is possible to print the content link of a field in the Views' template.

I would like to link an article title to its node, something like the following code:

print '&lt;a href="' . $node_url . '"&gt;' . $article['und']['0']['value'] . '&lt;/a&gt;'


This is a dumbed down version of my code in the view-view-field--field-article-title.tpl.php

$article = $row-&gt;_field_data['nid']['entity']-&gt;field_article_title;
$subtitle = $row-&gt;_field_data['nid']['entity']-&gt;field_article_subtitle;

if (isset($subtitle['und']['0']['value'])) {
  print $article['und']['0']['value'] . ': ' . $subtitle['und']['0']['value'] . '&lt;/p&gt;';
}
else {   
  print $article['und']['0']['value'];
}


Can anyone point me in the right direction? I've tried printing out the available fields, but for some reason I cannot print the fields in the view.
I'm not an expert and this may not be the absolute best way, but it works for me in D7 view-view-field templates.

Include something like this in your template file

&lt;a href="&lt;?php print base_path().drupal_get_path_alias("node/{$row-&gt;nid}") ?&gt;"&gt;...&lt;/a&gt;