UPDATE: Thanks to Molot I now see how I can edit the output of the view using the specific tpl file for that field. However I'm still not sure how to refer to that field and print it within that tpl file.
I have a file field in a custom content type that I'm displaying in a view. I want it to spit out the path to the file and nothing else in the view so I can do whatever I want with it. I have customized the views-view-unformatted-nameofview.tpl.php so it doesn't wrap the entire view with the default drupal divs and classes, like so:
<?php foreach ($rows as $id => $row):
print $row;
endforeach; ?>
Which works but is there a way to customize how it spits out a specific field? Even though I customize the html style to none it still tries to do things like display a custom icon for my file which I don't want. I'm also rewriting the output of the field in the view like so
<img src="[field_front_page_icon]">
I want to embed it into an img tag but what I end up with is
<img src="<span class=" file"="">
<img class="file-icon" alt="" title="image/svg+xml" src="/modules/file/icons/image-x-generic.png">
<a href="https://url.com/sites/default/files/maps.svg" type="image/svg+xml; length=5657">
maps.svg
</a>
When all I want it to display is
<img src="https://url.com/sites/default/files/maps.svg">
I would normally use an image field but it doesn't seem to allow to add svg as an acceptable file type. I'm open to other ways to go about it, but even if that's the case it'd still be nice to know how to edit the field output in views. I'd rather not install a pre-existing module if at all possible. However I would understand if that is the only reasonable course of action.