-
Notifications
You must be signed in to change notification settings - Fork 34
Connect block attributes with custom fields via UI #176
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
Conversation
917b150
to
8d471bc
Compare
I think there's a minor UX glitch with regard to the tools panel and link/unlink button: AFAIU, we should change two things here:
(This is based on how I observed the UX pattern to work e.g. for the existing margin panel in the style tab of the block inspector.) |
But, in that case, if you have the four of them unlinked, and want to reset only the image title or alt, you will need to reset every of them at once and set one by one again, right? It's better to keep consistency, but as we change the number of toolsitem, that is the default behaviour. I'll take a look at how is implemented for margin and styles. Thanks @ockham! |
63e9e91
to
7fa68ab
Compare
Fixed in 89d69ff |
Maybe 🤔 Plus I guess I need to file a bug report against Gutenberg, since it seems that |
I have a prototype working, but is adding all values parsed by SCF to the types endpoint, ending with maybe too much information. I will instead try to extend acf object data to include the formatted value. |
Per discussion via DM, I've pushed a fix for the date issue: 718af07 |
This one has been fixed. |
Fixed in 4a0aeaf |
Let's merge it and iterate it if needed. |
What
The PR allows to connect block attributes with custom fields via UI. Is still experimental, as I have not yet tested with any field type that can be created. In a future PR we can add an advanced view, using DataViews.
The image block will only search for image type fields, and all their attributes can be bound at once, just selecting the image field.
The paragraph, heading, and button blocks will only work with an initial set of items set in this variable:
Screenshare
Screen.Recording.2025-07-08.at.18.04.35.mov