Media Library Widget ml.show({ transformation: x }) not opening transform edit page
I am trying to implement the Media Library Widget into a admin panel, which is working fine in general. Using ml = createMediaLibrary() and later ml.show({ asset: { resource_id: 'xxx' } } ) works just fine as documented.
What I can't seem to get working is not just open the library widget to the manage page of an asset during ml.show() but open a specific transformation via ml.show({ transformation: { url: 'xxx' } }) as described in the docs. The use case here is User picks and transforms media item -> saves entry in cms -> edits entry -> clicks on edit media item -> library widget is opened with exact previously selected transformation.
As the transformation url I am providing the url of a derived image as it was provided to my callback function:
function insertHandler(asset) {
// later used for ml.show({ transformation: { url: asset.derived[0].url } })
}
Expected behavior: library widget opens the edit page of the given transformation
Current behavior: library widget simply opens to the home folder with no error onscreen or console whatsoever.
Thanks!
-
Hi Daniel,
Sorry for the delays. I am able to reproduce the issue and I have forwarded this to my dev team for further investigation.
I will let you know as soon as I have an update on this.
Thanks,
Aditi
0 -
Thanks a lot, Aditi. Looking forward to hearing from you!
0
Post is closed for comments.
Comments
2 comments