-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Docs: Add tutorial explaining how to use block variations API #20581
Comments
It's currently documented in the following places:
There is also a very helpful post from @richtabor on his blog: https://richtabor.com/block-variations/ |
I'm closing the issue for now as it seems variations are already documented. |
Hi everyone, im trying to implement the code as above
For variation like social-link, how do we get into sidebar blocks? any examples for this or documentation? |
@aacassandra it looks like there is no a scope option for
Not very clear what that means. I also noticed though that if you specify |
Sorry to add this to a closed issue. But I found it is very elusive in the documentation how to use the variations picker if block scope is chosen. I had to find it digging into the core src, comparing groups & columns. For example, when creating variations on the core group block, the variations picker is not found. Yet, it allows me to choose block scope, while this doesnt do anything (because there is no Would it be helpful if this is mentioned somewhere in the docs? (if you choose block scope, make sure there is a variation picker) |
Yes, that sounds like a good clarification to include. It looks like there are only 2 core blocks that have it integrated:
@ntsekouras, can you confirm? |
I can confirm that. I'll open a PR to update the docs a bit. |
Description
Originally raised in #16283.
Based on the examples shared in #20068 and e2e tests created in #20286 we could create tutorials presenting how to make the most using the block variations API.
Examples
Recorded screencasts contain unstable API but included code examples are up to date.
scope
limited to the block:scope
limited to the inserter:The text was updated successfully, but these errors were encountered: