Gutenberg InnerBlocks: accessing data stored in parent block?
-
I’m trying to create a set of blocks pretty similar to the core Query loop block. I have a few specific modifications that I need to make that probably makes block variations infeasible.
What I don’t understand about nestd/Inner Blocks is how I’m supposed to use some context from the parent or child blocks. So far, all I know that I can access is the $content variable, but that is only a string of HTML….
In essence, what I need is a set of blocks that’s something of an abstraction of a standard WordPress post query…
I have blocks like:
- Post Loop – Saves the filters and sorting settings as attributes
- Loop Template – Saves the styles and basic layout of the block as attributes
- Output Elements: Title/Heading, Post content, etc.
- Loop Template – Saves the styles and basic layout of the block as attributes
- Post Loop – Saves the filters and sorting settings as attributes
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.