Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reuseable Block Config #271

Open
JshGrn opened this issue Dec 5, 2023 · 2 comments
Open

Add Reuseable Block Config #271

JshGrn opened this issue Dec 5, 2023 · 2 comments
Labels
feature request New feature or request

Comments

@JshGrn
Copy link

JshGrn commented Dec 5, 2023

What are you trying to do?

I would like to be able to setup blocks and then define them similar to the Editor Config.

What's your proposed solution?

Somewhere to define 'global' Vizy blocks with unique handles, then be able to specify them in a similar way to the Editor Config json.

Additional context

This would allow you to create elements which might be used in various Vizy fields such as 'Button' and only have to setup the structure one time, this would save an unbelievable amount of time on my projects.

@JshGrn JshGrn added the feature request New feature or request label Dec 5, 2023
@JshGrn JshGrn changed the title Reuseable Block Config Add Reuseable Block Config Dec 5, 2023
@engram-design
Copy link
Member

I think this should be feasible, but would require some UI considerations, where you'll need to be able to pick from your global block types, or create a new one. Then, it's also a matter that you can't modify the globally-included block type, otherwise things would get messy.

@JshGrn
Copy link
Author

JshGrn commented Dec 5, 2023

I think not being able to modify the globally included block type is a given, and people should not expect to be able to. Re the UI, I personally wouldn't mind not seeing the included blocks in the normal builder and instead just a message to say additional blocks are being loaded from config... but if they were able to show then these could be quite easily grayed out and maybe a globe icon to say this is a global block and you can't edit... maybe just re-order?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants