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
Allows arbitrary arguments
This ViewHelper allows you to pass arbitrary arguments not defined below directly
to the HTML tag created. This includes custom
data-
arguments.
The following arguments are available for the form.uploadDeleteCheckbox ViewHelper:
additionalAttributes
-
- Type
- array
Additional tag attributes. They will be added directly to the resulting HTML tag.
aria
-
- Type
- array
Additional aria-* attributes. They will each be added with a "aria-" prefix.
data
-
- Type
- array
Additional data-* attributes. They will each be added with a "data-" prefix.
fileReference
-
- Type
- TYPO3\CMS\Extbase\Domain\Model\FileReference
- Required
- 1
The file reference object
id
-
- Type
- string
ID of the generated checkbox element
property
-
- Type
- string
- Required
- 1
Name of object property