How do I get block->id in preview? #1987
michaeljcoyne
started this conversation in
General
Replies: 1 comment 1 reply
-
Hey @michaeljcoyne could you share your usecase? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to be able to access $block->id in the preview.
I have tried passing it through in block classes but it seems to get reset.
I have a style sheet that relies on having a Id for a block.
I think for some reason Blockable is not accessible here.
See #865
I belive Twill is intentially set up in this way but it is causing me a problem.
Is there a Twill way to do this without trying to hack around or extend the preview class?
Beta Was this translation helpful? Give feedback.
All reactions