Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Javadoc resource link
classNameinfo.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
renderTypeasynchronous
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
classNameinfo.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
renderTypeasynchronous
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:

...

true
titleYAML file
Code Block
languageyml
form:
  tabs:
    - name: tabUpload
      label: Upload
      fields:
        - name: upload
          fieldType: damUpload
          label: Upload asset
          binaryNodeName: jcr:content
          editFileName: 
true
Localtab
titleJCR node
Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Node name

Value

Mgnl n
form

Mgnl n
tabs

Mgnl n
tabUpload

Mgnl n
fields

Mgnl n
upload

Mgnl p
binaryNodeName

jcr:content

Mgnl p
fieldType

damUpload

Mgnl p
label

Upload asset

Mgnl p
editFileName

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.