Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5978

Cannot use m6 linkfield to link to m5 app with 'appName' property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Critical Critical
    • None
    • 6.2.2
    • None
    • None

      Based on https://documentation.magnolia-cms.com/display/DOCS62/Link+field I expect that I can link to an m5 app using a configuration like: 

      Attempt with "appName":

      label: Articl
      form:
        properties:    
          article:
            label: Article
            $type: linkField
      
            chooser:
              workbenchChooser:
                appName: stories
      
      

       but this gives an exception when trying to use the chooser:

      Caused by: java.lang.IllegalStateException: Could not resolve browser descriptor from app categories
      	at info.magnolia.ui.chooser.definition.AppAwareWorkbenchChooserDefinition.lambda$null$7(AppAwareWorkbenchChooserDefinition.java:166) ~[magnolia-ui-framework-6.2.2-SNAPSHOT.ja
      
      

       I would expect that the above definition would work whether the target app is an m6 app or an m5 app.

      How can an M6 dialog link to an m5 app? This must be possible and it must be clearly documented, probably on the above linked page.

      Note - this also does not work - when you open the chooser it is empty:

      Attempt with "datasource":

      label: Article
      form:
        properties:    
          article:
            label: Article
            $type: linkField
      
            chooser:
              workbenchChooser:
                datasource:
                  $type: jcrDatasource
                  workspace: stories
                  rootPath: /
                  previewDefinition:
                    nodeName: name
      
      

       

        Acceptance criteria

              Unassigned Unassigned
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: