From an Entity Action, I am trying to popup a media picker modal to allow the user to select a media folder. I am able to get the popup to work, but not able to filter the items to just media folders or allow the user to select a media folder. Is there some other way to do this; for example a different modal tool from UMB_MEDIA_PICKER_MODAL?
const modal = this.modalManagerContext?.open(this._host, UMB_MEDIA_PICKER_MODAL, {
data: { multiple: false, filter: (item: any) => {
console.log({"pickableFilterItem":item});
return item?.mediaType?.icon == "icon-folder"; },
},
value: { selection: [] },
});
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115299-media-folder-picker-from-entity-action