soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
316 stars 29 forks source link

Gutenberg Editable Attributes Builder #450

Open puru991 opened 5 years ago

puru991 commented 5 years ago

Creating and displaying common control properties for a particular gutenberg block built with oxygen. For instance, Having a dropdown that adds a class name to the block or at a particular location in the html code. there could be "Controllers" that can be named and printed using some shortcode like {{control_name_1}}. This would enable more control on the visual style of a block without touching the code. LazyBlock plugin does this and has the following block controllers in place, for your reference: Repeater Text Textarea Number Range URL Email Password Image Gallery Code Editor Rich Text (WYSIWYG) Inner Blocks Select Multiple Select Checkbox Toggle Radio Color Picker Date Time Picker

What are the use cases for this feature?

  1. dynamically changing visual styles of a block by changing css classes from gutenberg interface only
  2. Adding Placeholders for text into Custom HTML blocks that can enable generation of dynamic text and html
  3. eliminate the need for a custom, advanced gutenberg block builders For instance, if we define two css classes to create text that changes position in a a comic's responsive panels. The control, placement_area can be either top_left or top_bottom . This can be selected by the user who is using the gutenberg interface. Depending on this the text position changes to top left of the panel or the bottom right. Hope this makes sense.

The HTML:

This is a comic text

**Examples of this feature or functionality.** LazyBlocks WordPress Plugin
Deanphillips commented 5 years ago

Agreed. Wrote about this here:

https://github.com/soflyy/oxygen-bugs-and-features/issues/393

Love Lazy blocks

Deanphillips commented 5 years ago

Wish this had been part of V3. Hopefully will be a possibility in the future :)

joebcc commented 3 years ago

Also agreed. This would be a very useful feature to have, and is one of the few that are standing in the way of choosing to fully adopt Oxygen going forward.

Without having this option, creating client-friendly but customizable Gutenberg blocks is not very possible. And would lead to an inefficient and hard to maintain component library over time.