Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create a local-only reusable-block or a ‚reusable-block light‘ #12

Open
carstingaxion opened this issue Oct 5, 2023 · 0 comments
Open
Labels
help wanted Extra attention is needed

Comments

@carstingaxion
Copy link
Member

carstingaxion commented Oct 5, 2023

We need a dynamic block that works very similar to a normal reusable-block or template-part, with the difference that it’s content - aka its innerBlocks - is coming from another block within the same post, not another post itself.

In PHP this is easy done like this and would be fine to use as the blocks render_callback for the frontend:
….

But by avoiding the use of the <ServerSideRender> component because of its flashy rendering, how to do it with JS and using other Gutenberg packages?

I’ve looked into the following, which looked promising:

—-

@carstingaxion carstingaxion added the help wanted Extra attention is needed label Oct 5, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

1 participant