.. include:: /Includes.rst.txt
.. _typo3-fluid-link-file:
=========
link.file
=========
A ViewHelper for creating links to a file (FAL).
Examples
========
Link to a file
--------------
::
See file
Output of a public file::
See file
Output of a non-public file::
See file
Link to download a file
-----------------------
::
Download file
Output of a public file::
Download file
Output of a non-public file::
Download file
Arguments
=========
.. _link.file_additionalattributes:
additionalAttributes
--------------------
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional tag attributes. They will be added directly to the resulting HTML tag.
.. _link.file_data:
data
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional data-* attributes. They will each be added with a "data-" prefix.
.. _link.file_aria:
aria
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional aria-* attributes. They will each be added with a "aria-" prefix.
.. _link.file_file:
file
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Specifies the file to create a link to
.. _link.file_download:
download
--------
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Specifies if file should be downloaded instead of displayed
.. _link.file_filename:
filename
--------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies an alternative filename. If filename contains a file extension, this must be the same as from 'file'.
.. _link.file_class:
class
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
CSS class(es) for this element
.. _link.file_dir:
dir
---
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)
.. _link.file_id:
id
--
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Unique (in this file) identifier for this HTML element.
.. _link.file_lang:
lang
----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Language for this element. Use short names specified in RFC 1766
.. _link.file_style:
style
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Individual CSS styles for this element
.. _link.file_title:
title
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Tooltip text of element
.. _link.file_accesskey:
accesskey
---------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Keyboard shortcut to access this element
.. _link.file_tabindex:
tabindex
--------
:aspect:`DataType`
integer
:aspect:`Required`
false
:aspect:`Description`
Specifies the tab order of this element
.. _link.file_onclick:
onclick
-------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
JavaScript evaluated for the onclick event
.. _link.file_name:
name
----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies the name of an anchor
.. _link.file_rel:
rel
---
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies the relationship between the current document and the linked document
.. _link.file_rev:
rev
---
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies the relationship between the linked document and the current document
.. _link.file_target:
target
------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies where to open the linked document