Form.uploadDeleteCheckbox ViewHelper <f:form.uploadDeleteCheckbox>

ViewHelper which creates a checkbox field, that is used for file upload deletion in Extbase.

Examples

Example:

<f:form.uploadDeleteCheckbox id="file" property="file" fileReference="{myModel.file}" />
Copied!

Output:

<input type="checkbox" id="file" name="tx_extension_plugin[@delete][item][hash]" value="signed-json-string">
Copied!

Source code

Go to the source code of this ViewHelper: Form\UploadDeleteCheckboxViewHelper.php (GitHub).

Arguments

The following arguments are available for the form.uploadDeleteCheckbox ViewHelper:

additionalAttributes

additionalAttributes
Type
array
Additional tag attributes. They will be added directly to the resulting HTML tag.

aria

aria
Type
array
Additional aria-* attributes. They will each be added with a "aria-" prefix.

data

data
Type
array
Additional data-* attributes. They will each be added with a "data-" prefix.

fileReference

fileReference
Type
TYPO3\CMS\Extbase\Domain\Model\FileReference
Required
1
The file reference object

id

id
Type
string
ID of the generated checkbox element

property

property
Type
string
Required
1
Name of object property