• Hozefa Saleh

    (@hozefasmile)


    You provide an easy interface to create variations of any block. For example I frequently use it for creating variations of button block. For example different sized, different color and layout etc.

    But one functionality missing is that we can’t replace one variation with the another. For example if you see group block, there comes two variation row and stack, you can easily change from one variation to another anytime.

    But when I create new variation using your plugin for button, I can’t change already created button from one variation to another variation, for example if I have create blue button variation and I want to change that same button to red button variation there is no such option, I just have to create a new button with that red button variation and have to delete the blue variation one.

    Can you provide switching capabilities to the block variations?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Phi Phan

    (@mr2p)

    I’ll look into it soon, thank you @hozefasmile for your suggestion.

    Phi.

    Plugin Author Phi Phan

    (@mr2p)

    Hi @hozefasmile,
    This feature has been added to the latest version 2.2.22.
    There is some limit in the core API for transforming variations so it is not fully supported for container block types, but it works great with simple block types such as heading, paragraph, button, list, quote, etc.
    Thank you for your feedback, again. Please keep reporting issues and suggestions.

    Phi.

    Thread Starter Hozefa Saleh

    (@hozefasmile)

    Hi @mr2p ,
    I am not able to find out how I can utilize this new feature added by you? Where you have added the setting for replacing the block with another variation? For example in button.

    Plugin Author Phi Phan

    (@mr2p)

    @hozefasmile I’m sorry, I’ve forgotten to guide you on how to use it.
    The default setting for a variation is it can not be transformable. You have to turn on that feature by toggling on a setting name “Is transformable?” in the edit screen for a variation.

    Thread Starter Hozefa Saleh

    (@hozefasmile)

    hummm, got it but still has one missing feature, we can’t choose in the variation the default button instead of your variations. I mean in the variation list to choose there also needed the default button choice(which we set in theme.json file)

    Plugin Author Phi Phan

    (@mr2p)

    That’s the default behavior of Gutenberg. I only use the core API. You may have to create a variation for it and set it as the default one. I’ll look into it further if you find any about that stuff please share it with me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Variation replacement capability’ is closed to new replies.