MultiValueField, BasicUploadFieldDefinition, FreeMarker and i18n
#1 by iokerhe1 on Jun 6, 2017 6:05:12 PM

Hi!

We're trying to create a multivalue field with i18n enabled to upload files without using DAM. This is the code:

- name: documents
class: info.magnolia.ui.form.field.definition.MultiValueFieldDefinition
transformerClass: info.magnolia.ui.form.field.transformer.multi.DelegatingMultiValueSubnodeTransformer
i18n: true
field:
name: document
class: info.magnolia.ui.form.field.definition.BasicUploadFieldDefinition
preview: false
editFileName: true
binaryNodeName: document


This is how it's storing the files:


Our problem is how to retrieve the documents for current localization using freemarker. We're trying with multiple transformer and configurations but nothing is working.

Can someone help us? We can't find information about this configuration.

Thanks in advance.