JavaScript for WordPress Forums Gutenberg Development Add MediaUpload/MediaUploadCheck in sidebar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #84250
    ldecoker
    Participant

    Hello!

    I have added a plugin sidebar on post to include meta fields. I would need to add MediaUpload in it. Is it possible? An example will be appreciated :o)

    Thx!

    #84259
    Zac Gordon
    Keymaster

    There is an example of how to use the MediaUpload component in the blocks course I believe.

    The advanced GB course covers the Sidebar Plugin API if you’re looking for an example of that and have the course I can point you to an example there too 👍

    #84468
    ldecoker
    Participant

    Thx Zac!

    yes I have the advanced GB course on my dashboard 🙂

    #84471
    Zac Gordon
    Keymaster

    Great! So I’ll trust you can find the example in the GB block course on MediaUpload component 👍

    Here’s an example of how to code out a plugin sidebar – https://github.com/zgordon/advanced-gutenberg-course/tree/master/plugins/01-toc

    NOTE: You may have to modify your webpack or enqueuing files to make sure your plugin files get enqueued 👍

    #84473
    ldecoker
    Participant

    Thx! I am attending the training right now. I did not see it was available now 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.