[MGNLDAM-1251] Path format in not supported by damLinkfield Created: 21/Sep/23  Updated: 21/Sep/23

Status: Open
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 3.0.26
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: David Wei Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 6.2.X


Attachments: PNG File Snipaste_2023-09-21_09-19-08.png     PNG File Snipaste_2023-09-21_09-26-44.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Path format in not supported by damLinkfield when following the document to define a  converterClass properties.

I know linkField support assets to store in path format but it has a definition problem, please see attachments below.

 

Here is the field definition:

 

image1:
  label: Image
  $type: damLinkField
  textInputAllowed: true
  converterClass: info.magnolia.dam.app.data.AssetConverter
image2:
  label: Image
  $type: linkField
  textInputAllowed: true
  converterClass: info.magnolia.dam.app.data.AssetConverter
  chooserId: dam-app-core:chooser
  preview:
    class: info.magnolia.ui.editor.ItemPreviewDefinition
  datasource:
    class: info.magnolia.dam.app.data.AssetDatasourceDefinition
    preview:
      variationName: 240
image3:
  label: Image
  $type: linkField
  showOptions: true
  textInputAllowed: true
  converterClass: info.magnolia.ui.editor.converter.JcrNodeToPathConverter
  chooser:
    workbenchChooser:
      appName: dam
  datasource:
    $type: jcrDatasource
    workspace: dam
    allowedNodeTypes:
      - mgnl:folder
      - mgnl:asset 

Expected results:

 

1. Be able to support damLinkField e.g image1& image2 define converterClass or no warning info when use linkField to define chooser properties like image3 of sample.

2.Modify the document because convertClass is a common field properties but damLinkField is not supported.


Generated at Mon Feb 12 05:07:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.