Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.39 KB

field-shortcodes.md

File metadata and controls

13 lines (7 loc) · 1.39 KB

Field shortcodes

One of the current limitations of the block bindings API is that it is restricted to a small number of core blocks and attributes. For example, currently, you cannot bind to the content of a table block or a custom block. You also cannot bind to a subset of a block's content.

As a partial workaround, this plugin provides a way to use remote data in some places where block bindings are not supported. We call this feature "field shortcodes," and it is available in any block that uses rich text, such as tables, lists, and custom blocks. Look for the field shortcode button in the rich text formatting toolbar:

Field shortcode button

Clicking this button will open a modal that allows you to select a field from a remote data source, resulting in an inline remote data binding. Just like remote data blocks, this binding will load the latest data from the remote source when the content is rendered.

A bulleted list using several field shortcodes to describe three conference events

Field shortcodes compile to HTML, so they are portable, safe, and have a built-in fallback.