Is it possible to access the parent document in a custom Block component? #10837
Unanswered
DriesCruyskens
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My current solution is to have a relationship field on the block config so I can access the data I need. The block is only displayed on a single Page type so it would be nice to access the page's ID or other fields withing a custom block.
I was already looking at the react hooks with
useDocumentInfo()
in particular but this seems to be only for custom admin components.Beta Was this translation helpful? Give feedback.
All reactions