Hide file preview in list view

I have a table with productName and productFile (and some other fields).
The productFile field is setup as file upload in the edit tag.
The view tag of the productFile is setup as formatted text.
Nevertheless, in listview I see preview of the file (with horizontal an vertical scroll bars) in stead of just the productFile name + hyperlink.
So question is: in List View: how can I replace the preview of the file with the productFile + hyperlink? Am I missing something?

wevens wrote:

Nevertheless, in listview I see preview of the file (with horizontal and vertical scroll bars)

I believe you meant PDF file, you may see Tools → Advanced Settings → “Embed PDF documents”.

Thanks!
Unselecting this option indeed helps solving the preview of the PDF and only shows the document name as a hyperlink.

However, when I click on the hyperlink now, in list view, the system tries to download (“save as”) it to the local PC which is not what I want.
It should instead show the document as pdf.

Any idea?

If you are a registered user, click on “Tools” → “Update Template”, and after updating the template, make sure you have already re-generated ALL the script files, and try again.

Thank you very much!
This solved the issue.

Advice to anyone: I had to redo custom changes to the zip-file after updating (and before regenerating). So good advice is to keep track of those changes.
(for example I had a change in the “insertsql”-function of “table-class.php” in order to update table in stead of view).
Or maybe there is a better way to handle this?

wevens wrote:

Or maybe there is a better way to handle this?

Yes. Creating an Extension is the closest approach for such case. You may still keep maintain your changes in the Extension side.

However, you need to backup the older template files if you want to update and generate by using the latest template; just in case there are changes for the code in that “table-class.php” template file. If so, then you need to adjust the change to that file in your Extension side.