Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Creating a block, selectively showing only certain inputs

$
0
0

In our site right now we currently have 4 block types to create different styles of buttons.

Each block is basically the same, it just requires a few different things: Image block needs an image. Icon button needs an icon to be chosen, etc.

I was thinking about creating one button block to handle all 4 (and potentially more) styles. I'm just not sure how possible it would be without getting confusing. For instance, if you create a new button block and choose Image button from a dropdown, could the block editor then show extra fields that were hidden before. And if you chose Icon button would it hide those fields and present other fields?

I mocked up this idea to hopefully help illustrate what I'm hoping to achieve. Is this something EpiServer can do? 


Viewing all articles
Browse latest Browse all 8020

Trending Articles