New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with Media Library Folders #398
Comments
Thanks for posting this Mihaela! |
Any chance someone has managed to look at this yet? |
@AJerm I found a solution to your problem . We were not able to fix it from our end because we have no action we can hook into . In
|
You star, cheers @andyluak! Will give that a go :) |
I'll close this. |
https://wordpress.org/support/topic/not-working-with-media-library-folders/
Get the plugin here for testing: https://secure.helpscout.net/conversation/1196151658/27994?folderId=1289779
Media Library Folders Pro helps site administrators to organize their media files by allowing them to create folders and move files. For inserting files into posts and pages, the plugin adds a folder tree to the Wordpress media uploader popup. When the user clicks on a folder in the tree, the media popup should refresh its contents which will display the files in the selected folder. Normally that is accomplished with
wp.media.frame.content.get().collection.props.set({ignore: (+ new Date())});
But with your gallery popup, this line will cause: TypeError: wp.media.frame is undefined. Hopefully, you guys can provide us with the code that we can use to refresh the contents of the popup when the Modula gallery is in use.
The code Media Library Folders Pro uses to refresh the media uploader contents can be found in the media-library-plus-pro/js/mlfp-media.js file.
The text was updated successfully, but these errors were encountered: