mirror of
https://github.com/werkraum-media/form_file_collection.git
synced 2024-05-20 09:44:10 +02:00
Daniel Siepmann
5bb586a19a
Allow to implement custom templates working with files, e.g. providing a thumbnail, link to full file, etc.
25 lines
1.1 KiB
HTML
25 lines
1.1 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
|
data-namespace-typo3-fluid="true"
|
|
>
|
|
|
|
<formvh:renderRenderable renderable="{element}">
|
|
<f:render partial="Field/Field" arguments="{element: element}" contentAs="elementContent">
|
|
<f:for each="{element.properties.files}" as="file" iteration="idIterator">
|
|
<f:form.checkbox
|
|
property="{element.identifier}"
|
|
multiple="1"
|
|
id="{element.uniqueIdentifier}-{idIterator.index}"
|
|
class="{element.properties.elementClassAttribute}"
|
|
value="{file.title}"
|
|
errorClass="{element.properties.elementErrorClassAttribute}"
|
|
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"
|
|
/>
|
|
{file.properties.title}
|
|
{file.properties.description}
|
|
<f:image image="{file}" width="100"/>
|
|
</f:for>
|
|
</f:render>
|
|
</formvh:renderRenderable>
|
|
|
|
</html>
|