AdvancedCustomFields / AdvancedCustomFields/acf
Beta 5.9 FR - Pass hierarchy to innerBlocks
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
It would be valuable to know what parent a block is a child of.
Example: I have a Column block that I want to know when it's used inside of my Columns/Row block.
Not sure how the data would make sense to have in the $block variable, but I saw getBlockHierarchyRootClientId via https://wordpress.stackexchange.com/questions/317003/gutenberg-is-there-a-way-to-know-if-current-block-is-inside-innerblocks
This isn't a bug or a major thing, but would be useful info to know when rendering an ACF block.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing ACF block rendering and comparing the requested parent information with Gutenberg’s getBlockHierarchyRootClientId reference. Define where the hierarchy should be exposed to innerBlocks, then verify it when a Column block is nested in a Columns/Row block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100