-
Bug
-
Resolution: Fixed
-
Neutral
-
3.0.3
-
None
-
-
Empty show more show less
-
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
- Dialog definition with damLinkFiel
- Try to select a folder instead of an asset
- Note that the "choose" button is disabled unless you select an asset
- 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.
- is related to
-
MGNLDAM-902 AssetPreviewProvider throws exception for missing mime type
- Closed
- relates to
-
MGNLUI-6974 Choosers could support root selection
- Open
- to be documented by
-
MGNLDAM-984 DOC: 'damLinkField' can be restricted to assets only
- Closed