Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-900

damLinkField does not allow to select folders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.0.10
    • 3.0.3
    • None
    • Yes
    • Yes
    • UI FW 34
    • 1

      Using damLinkField you are only allowed to select assets, it does not let you select folders. A customer wrote in as they would like to choose a folder (f.e. to display all images in that folder).

      There is a workaround using the linkfield, but the chooser is different, the JCR Picker doesn't have an image preview, the saved value is just a UUID and not an itemKey, which is used in all damfn methods.

      Steps to reproduce

      1. Dialog definition with damLinkFiel
      2. Try to select a folder instead of an asset
      3. Note that the "choose" button is disabled unless you select an asset
      4. You can remove the IsAssetRuleDefinition rule that way, you can use the damlinkfield to select folders. the chooser.yaml file located in the resources app under /dam-app-core/dialogs/chooser.yaml but this produces follow-up errors

      Additional notes
      This was working as expected in Magnolia 5.7

      Workaround
      Decorate https://demo.magnolia-cms.com/.magnolia/admincentral#app:resources:edit;/dam-app-core/dialogs/chooser.yaml:edit and change the availability rule as you wish.

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              mdamborenea Monica Damborenea
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1d
                    1d