Project

General

Profile

Actions

Feature #48966

closed

FileReference in Backend should provide a direct link to the referenced file

Added by Nico de Haen almost 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2013-06-08
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

It should be possible to download a file in backend forms from properties of type FileReference. For example if a data set (or a FileCollection) contains a reference to a Word document or any other file type it should be downloadable when opening the edit form of the data set.

At the moment it does not even display the path, but only the filename, so it is not possible for the editor to find the referenced file. (See attached screenshot)


Files

FileReference.png (46 KB) FileReference.png Nico de Haen, 2013-06-08 18:44
FAL-Label-Summary.PNG (53.7 KB) FAL-Label-Summary.PNG Ernesto Baschny, 2013-08-28 02:08
Actions #1

Updated by Ernesto Baschny over 10 years ago

I would not provide directly a link to "download" but:

1) enhance the information displayed as the IRRE title to make it look like the info also displayed already when you edit the FAL item itself. Looks like this:

2) Add a (i) INFO icon with a link to the "Info Popup", which is already available in the Filelist module: this view provides more detailed info on the file and also a "Download" link in case the file is not an image

3) Remove the Thumbnail of both of these views in case it's not an image

4) Add this IRRE label not by using "label_userFunc" as it is done now, because this is wrong use of this method. The result from the userFunc is used in several lists (i.e. the Workspaces module) and does not expect to contain HTML (because it should be htmlspecialchared before). So there need to be a new feature / setting to return a "summary information" for a sys_file_reference record (which is a different thing than a "label").

My suggestion would be a IRRE feature to allow rendering the complete "thumbnail + short info + info-link" as raw HTML, so that that method could decide if a thumbnail is required at all etc.

Actions #2

Updated by Mathias Schreiber over 9 years ago

  • Status changed from Accepted to Closed

Download button implemented

Actions

Also available in: Atom PDF