~/talk

Building Custom Gutenberg Blocks: From Static to Dynamic

Talkat WordCamp Miami 2018 · 2018-03-16..03-18· [wordpress, javascript]
slides:none on file

Builds a real Gutenberg alert block that moves from static HTML to a dynamic, API-backed component using webpack + Babel, JSX and React, React‑Bootstrap, SCSS and NPM. The example creates two bundles (blocks admin bundle and lighter front-end bundle), declares attributes (including a meta-backed alert type), uses WP hooks and the REST API to fetch a remote post ID for live content, and adds Inspector Controls. It renders via PHP render_callback for safe front-end output but notes extra setup — registering scripts on the front end and exposing meta in REST — is required.

AI-written summary · about

  1. 0:00Start
  2. 3:38Do You Need Web Pack
  3. 4:21What Is Jsx
  4. 5:32Block Attributes
  5. 5:50Block Attribute Types
  6. 6:32Wordpress Rest Api
  7. 6:59Commit History
  8. 15:03Wp Hooks
  9. 31:41Wordpress
  10. 42:26What Is a Component in the Context of a React Wordpress Javascript
  11. 1:03:53Import Toolbar from Wordpress Components
  12. 1:16:48A Dynamic Block
  13. 1:31:57How To Use a Php Render Callback
  14. 1:32:15Php Render Callback
  15. 1:37:02Capabilities Check
  16. 1:37:35Rest Api Request
  17. 1:45:57Abstraction Layer
  18. 1:56:19Nested Blocks
  19. 1:57:38Shared Blocks
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.