[EXTDAM-268] Allow linkField to select assets from one of the DAM sources only Created: 25/Aug/20  Updated: 29/Oct/21  Resolved: 04/May/21

Status: Closed
Project: External DAMs
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.7

Type: Improvement Priority: Neutral
Reporter: Viet Nguyen Assignee: Roman Kovařík
Resolution: Done Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: 6.55h
Original Estimate: Not Specified

Attachments: PNG File image-2021-04-19-16-35-08-569.png    
Issue Links:
Problem/Incident
causes EXTDAM-323 Cannot load all assets in DAM chooser... Closed
causality
dependency
depends upon MGNLDAM-966 Introduce JCR asset to jcr:UUID conve... Closed
documentation
to be documented by EXTDAM-272 DOC: Document ability to configure di... Closed
supersession
supersedes EXTDAM-215 [Bynder & S3] Disable JCR option in c... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Testcase included:
Yes
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Ext DAMs maintenance & partnership support
Sprint: Maintenance 55
Story Points: 8

 Description   

Given the case that we have connected to an external DAM, so opening the DAM app, would present a picture like the first one on this page (one tab per DAM source): https://documentation.magnolia-cms.com/display/DOCS62/DAM+Connector+Pack

How would we then configure a link field to allow selecting assets of one of the DAM sources, only (e.g. only S3 assets)?

The given yaml snippet on https://documentation.magnolia-cms.com/display/DOCS62/Link+field doesn't seem to provide the necessary properties for limiting the workspace further.



 Comments   
Comment by Roman Kovařík [ 26/Aug/20 ]

Isn't it possible like this (6.2.3)?

link:
  $type: damLinkField
  datasource:
    name: s3
    class: info.magnolia.dam.app.data.AssetDatasourceDefinition
Comment by Roman Kovařík [ 03/May/21 ]

For documentation:

https://docs.magnolia-cms.com/product-docs/Templating/Dialog-definition/Field-definition/List-of-fields/Link-field.html
It's now possible to use (instead of the aggregated damLinkField) only one asset provider per link field:

form:
  properties:
    bynder:
      $type: damLinkField
      chooserId: dam-bynder:chooser
      datasource:
        class: info.magnolia.dam.app.data.AssetDatasourceDefinition
        name: bynder
    s3:
      $type: damLinkField
      chooserId: dam-s3:chooser
      datasource:
        class: info.magnolia.dam.app.data.AssetDatasourceDefinition
        name: s3
    jcr:
      $type: linkField
      converterClass: info.magnolia.ui.editor.converter.JcrAssetConverter
      datasource:
        $type: jcrDatasource
        workspace: website
Generated at Mon Feb 12 01:53:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.