Versions Compared

Key

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

...

The central property when defining a link field is appName - the name of the Magnolia app to choose the item from. The target app is responsible for providing a view that is suitable for selecting the item. When the target app is a content app, the workbench in the browser subapp is a suitable view and it is used by default. For more complex apps like the Assets app - 5 UI, a choose dialog is configured in the app to browse the contents.

...

Localtab Group
Localtab
activetrue
titleYAML file
Code Block
languagejs
form:
 tabs:
    - name: tabImage
      label: Image 
      fields:
        - name: image
          fieldType: link
          targetWorkspace: dam
          appName: assets
          label: Select image
          identifierToPathConverter:
            class: info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator
          contentPreviewDefinition:
            contentPreviewClass: info.magnolia.dam.app.ui.field.DamFilePreviewComponent
Localtab
titleJCR node
Advanced Tables - Table Plus
heading0
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

Mgnl n
form


Mgnl n
tabs


Mgnl n
tabImage


Mgnl n
fields


Mgnl n
image


Mgnl n
identifierToPathConverter


Mgnl p
class

info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator

Mgnl n
contentPreviewDefinition


Mgnl p
contentPreviewClass

info.magnolia.dam.app.ui.field.DamFilePreviewComponent

Mgnl p
appName

contacts

Mgnl p
fieldType

link

Mgnl p
targetWorkspace

dam

Mgnl p
label

Select image

Mgnl p
label

Image


Include Page
_referencing Referencing fields shortcut info - 5 UI
_referencing Referencing fields shortcut info - 5 UI

Field-specific properties:

...

Include Page
_Common field properties - 5 UI
_Common field properties - 5 UI

...