bobbingwide / oik-blocks

WordPress 5.0 blocks for oik shortcodes
https://oik-plugins.com/oik-plugins/oik-blocks
GNU General Public License v3.0
1 stars 0 forks source link

Create a dynamic block to replace the [bw_contact_form] shortcode #7

Closed bobbingwide closed 2 years ago

bobbingwide commented 6 years ago

The [bw_contact_form] shortcode displays a simple HTML form. We would like to be able to use the existing logic in a dynamic block.

Requirement

Proposed solution

bobbingwide commented 6 years ago

To test #8 we'll change the registration of the Contact form block so that Gutenberg enqueues the styles. We'll then have to investigate how to change the build to produce multiple scripts and see how that affects the overall behaviour of the site.

bobbingwide commented 6 years ago

Changing the edit: method to return using parentheses rather than square brackets seems to resolve the annoying react message about duplicate keys. It'd be nice to know why... but I'll check in this version anyway.

bobbingwide commented 5 years ago

The Contact form already works with Gutenberg v4.0.0 but the following changes could be made anyway.

bobbingwide commented 2 years ago

The Contact form block is now delivered in oik. See https://github.com/bobbingwide/oik/issues/138