FileViewHelper extends AbstractTagBasedViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:link.file>

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::

See file

Output of a non-public file::

See 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::

Download file

Output of a non-public file::

Download 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

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

createFileDumpUrl()

Create a file dump URL, taking the view helper arguments into account

protected createFileDumpUrl(FileInterface $file) : string
Parameters
$file : FileInterface
Return values
string

        
On this page

Search results