I'm using the views-view-field--field-fieldname.tpl.php to rewrite the output of a specific field in a view. However in this template I'm having trouble referring to the actual field.
I can produce the normal input with
print $output;
However this contains the classes and divs it is wrapped in. Including the default icon that is used to represent it. I'm having trouble producing the specific data of the field. Specifically the url to the file. (It is a file field). Is this possible? I made quite a number of attempts. Below are the attempts I've made that were unsuccessful.
print $fields['fields_field_fieldname']->content;
print $row['fieldname'];
print $view->results->{view->field['field_fieldname']->field_alias};
I understand that I could use string replace and regex to extract the data I need $output. If that's the only way to do it, I'll stick to that.