Custom Fields
Re-Envisioned
Support MB Blocks Creating Gutenberg sidebar panels

  • Creator
    Topic
  • #17090
    Przemek
    Participant

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #17100
    Anh Tran
    Keymaster

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

    #17106
    Przemek
    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
    Monsun
    Participant

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

    #17472
    Przemek
    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
    Monsun
    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 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 Meta Box Builder to create blocks, there’s an option to set it as well:

    https://prnt.sc/q94hge

    #17485
    Monsun
    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 Meta Box Builder the option does not exist, when you select post instead of block.

    #17488
    Anh 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 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash