Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In a custom section, I'm using the following code:
dialogService.mediaPicker({ callback: populatePicture, onlyImages: true});
However, it still lets me select a folder in the dialog.
If I step into the code, it seems to be using an obsolete umb-photo-folder directive.
Is there a different (newer) way I should be using the media picker in my custom section? Or is this a bug?
To answer my own question, umbOverlay seems to be the new way to go when picking media:
https://our.umbraco.org/apidocs/ui/#/api/umbraco.directives.directive:umbOverlay
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
dialogService.mediaPicker() does not seem to respect onlyImages option
In a custom section, I'm using the following code:
However, it still lets me select a folder in the dialog.
If I step into the code, it seems to be using an obsolete umb-photo-folder directive.
Is there a different (newer) way I should be using the media picker in my custom section? Or is this a bug?
To answer my own question, umbOverlay seems to be the new way to go when picking media:
https://our.umbraco.org/apidocs/ui/#/api/umbraco.directives.directive:umbOverlay
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.