Format / FileDownloadViewHelper

ViewHelper to render a download link of a file using $cObj->filelink()

Type: Basic

General properties

Name: Type: Description: Default value:
configuration array configuration used to render the filelink cObject Array
* file string Path to the file  
hideError boolean define if an error should be displayed if file not found  

Examples

Basic example

Code:

 <n:format.fileDownload file="uploads/tx_news/{relatedFile.file}" configuration="{settings.relatedFiles.download}">
{relatedFile.title}
 </n:format.fileDownload>

Output:

Link to download the file "uploads/tx_news/{relatedFile.file}"