Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-1886

Javadoc resource link
classNameinfo.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
renderTypeasynchronous
renders a field for uploading files into a Magnolia workspace. This field is used by the Assets app for uploading assets into the dam workspace. It extends the basic upload field field and adds the following enhancements to the completed view:

  • The uploaded file is mapped to a media type based on its MIME type.
  • The default field labels are overridden with Media type specific labels such as Upload new image.
  • Actions for editing images in the media editor.
  • Actions for previewing images.
  • Thumbnail preview.

Classclassinfo.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition

fieldType: damUpload

Here's the completed view for an uploaded image.

...

Here's the completed view for an uploaded video.

 


Table of Contents

DAM upload field properties

...

Localtab Group
Localtab
activetrue
titleYAML file
Code Block
languagejs
form:
  tabs:
    - name: tabUpload
      label: Upload
      fields:
        - name: upload
          classfieldType: info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinitiondamUpload
          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
classfieldType

damUploadinfo.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition

Mgnl p
label

Upload asset

Mgnl p
editFileName

true

Include Page
_referencing fields shortcut info
_referencing fields shortcut info

You can use common field properties and the properties in the tables below in a basic upload field definition:

Include Page
DOCS56:_Common upload field propertiesDOCS56:
_Common upload field properties

...

View in lightbox preview
<field name>

required

Name of the field

lightboxCaption

editFileCaption

optional, default is

Edit image...

Text displayed as tooltip when you hover over the

edit action icon.

editFileCaptionlightboxCaption

optional, default is Edit imageView in lightbox...

Text displayed as tooltip when you hover over the edit preview action icon.

Common field properties:

Include Page
_Common field properties
_Common field properties

Info

When using the basic upload field in a composite field use the DelegatingCompositeFieldTransformer. The other transformer classes do not work.

...