FileViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:link.file>
FinalYes
A ViewHelper for creating links to a file (FAL).
Examples
Link to a file
::
<f:link.file file="{file}" target="_blank">See file</f:link.file>
Output of a public file::
Output of a non-public file::
Link to download a file
::
<f:link.file file="{file}" download="true" filename="alternative-name.jpg">Download file</f:link.file>
Output of a public file::
Output of a non-public file::
Table of Contents
Properties
- $tagName : string
Methods
- initializeArguments() : void
- render() : string
- createFileDumpUrl() : string
- Create a file dump URL, taking the view helper arguments into account
- getAlternativeFilename() : string
Properties
$tagName
protected
string
$tagName
= 'a'
Methods
initializeArguments()
public
initializeArguments() : void
render()
public
render() : string
Return values
stringcreateFileDumpUrl()
Create a file dump URL, taking the view helper arguments into account
protected
createFileDumpUrl(FileInterface $file) : string
Parameters
- $file : FileInterface
Return values
stringgetAlternativeFilename()
protected
getAlternativeFilename(FileInterface $file) : string
Parameters
- $file : FileInterface