-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Try/block bindings use default for generic bindings #71002
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
base: trunk
Are you sure you want to change the base?
Conversation
The next question to answer will be how the source (i.e. |
Size Change: -24 B (0%) Total Size: 1.91 MB
ℹ️ View Unchanged
|
One thing to consider would be e.g. how the Featured Image block currently fetches a post's featured image, and how it maps the latter's properties to its attributes -- especially considering that in the long run, it should be possible to express the Featured Image block as an Image block bound to the |
The Featured Image block is dynamic, so everything is handled with the gutenberg/packages/block-library/src/cover/index.php Lines 48 to 64 in 4171f27
|
When connecting the |
What?
Experiment, based on some internal discussions with @cbravobernal and @gziolo.
Extend the mechanism that currently maps the
__default
block binding for pattern overrides to any kind of block binding. In other words, if an image block (whose supported attributes areid
,url
,title
, andalt
) has block bindings as follows:they are expanded into
Why?
To explore a straightforward way and syntax of binding a block to a non-primitive source object (e.g. an image).
How?
TBD
Testing Instructions
TBD