...
Javadoc resource link |
---|
className | info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition |
---|
renderType | asynchronous |
---|
|
renders a field that is used by the
Assets app for for uploading assets to the DAM workspace. It extends the
basic upload field as follows:
...
It is possible to configure
Javadoc resource link |
---|
className | info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition |
---|
renderType | asynchronous |
---|
|
in dialogs or other apps, but keep in mind that the file will be placed in the workspace for which the field has been configured. For example, if you use the field in a dialog for a component template, that file (when uploaded using the field) will be stored in the website, not the DAM, workspace. It is best practice to keep your assets in the DAM whenever possible and link to them using a link field.class: info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
...
Simple DAM upload field definition:
...
title | YAML file |
---|
Code Block |
---|
|
form:
tabs:
- name: tabUpload
label: Upload
fields:
- name: upload
fieldType: damUpload
label: Upload asset
binaryNodeName: jcr:content
editFileName: true Localtab |
---|
|
|
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| | | | | | jcr:content |
| damUpload |
| Upload asset |
| true
Include Page |
---|
| _referencing Referencing fields shortcut info - 5 UI |
---|
| _referencing Referencing fields shortcut info - 5 UI |
---|
|
Include Page |
---|
| _Common upload field properties - 5 UI |
---|
| _Common upload field properties - 5 UI |
---|
|
Caption properties specific to the DAM upload field:
<field name> | required Name of the field. |
editFileCaption
| optional, default is Edit image ... Text displayed as a tooltip when you hover over the edit action icon. |
lightboxCaption
| optional, default is View in lightbox ... Text displayed as a tooltip when you hover over the preview action icon. |
Common field properties:
Include Page |
---|
| _Common field properties - 5 UI |
---|
| _Common field properties - 5 UI |
---|
|
Info |
---|
When using the basic upload field in a composite field, use DelegatingCompositeFieldTransformer . The other transformer classes do not work. |