Creating Gutenberg sidebar panels

Support MB Blocks Creating Gutenberg sidebar panels

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #17090
    PrzemekPrzemek
    Participant

    Is it possible to create Gutenberg sidebar panels for saving post meta like Misha Rudrastyh does? Or do you plan such functionality?

    #17100
    Anh TranAnh Tran
    Keymaster

    Hi, currently it's not available yet. I'll make a note for that and put it on the roadmap.

    #17106
    PrzemekPrzemek
    Participant

    Thank you Anh, there are so few tools that make it easy, that it could be a very valuable feature of your plugin.

    #17470
    MonsunMonsun
    Participant

    Can you speed the implementation up?
    It is a really important feature, and ACF can do it...

    #17472
    PrzemekPrzemek
    Participant

    Hi, I'm not sure if ACF can do it. Is it documented?
    I mean exactly sidebar panels (Gutenberg-based), not just meta boxes aside.

    #17475
    MonsunMonsun
    Participant

    Sorry - I was just thinking of meta boxes aside.

    It's really annoying when the fields are shown after Gutenberg.
    At the moment I have to use ACF instead of MB Custom Fields, to get the field groups shown on the side panel.

    Or am I missing something?

    #17480
    Anh TranAnh Tran
    Keymaster

    Hi,

    Regarding the meta boxes aside, it's already supported by MB Blocks. All you need to do is set the 'context' => 'side' for the block. Here is the docs for that:

    https://docs.metabox.io/extensions/mb-blocks/#context

    If you use MB Builder to create blocks, there's an option to set it as well:

    https://prnt.sc/q94hge

    #17485
    MonsunMonsun
    Participant

    This is not in relation to blocks but posts.

    I have a custom post type with custom fields. But when your in the Gutenberg editor, the custom fields ar shown after the Gutenberg editor, instead of the side panel.

    In MB Builder the option does not exist, when you select post instead of block.

    #17488
    Anh TranAnh Tran
    Keymaster

    Hi,

    This topic is about blocks, so I thought you're talking about it.

    What you want is moving the meta boxes to the sidebar. That can be done with the same parameter 'context' => 'side' for meta boxes. See this docs.

    Previously, Gutenberg moves all the meta boxes to the "after content" position, which is what you're seeing. It probably changed its behavior to accept side context. I've updated the Builder to reflect the change, so you can see the option within the Builder.

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