-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add easy access to current block data object #387
Comments
Hi @mrsunshine thanks for reaching out to us. If I understand this correctly, do you want a field plugin to be able to access other fields in the current story via blockUid? |
@eunjae-lee yes. All informations are there but difficult to access.
something like this:
|
@mrsunshine got it. Thanks for the clarification and thanks for providing this code snippet, which can be useful for others looking at this issue in the future 🙂 We will create an internal ticket to discuss about this, but I cannot tell any ETA, and whether or not we will ship this, though. Thanks for your contribution 💙 |
Also we are looking for it quite much, traversing the whole object, especially for bigger sites is not the best idea in terms of performance. any updates @eunjae-lee ? At least if you are going to focus on that at all, then we can think of some other way of handling this. |
@marckraw nothing was planned for this until now, I created a Feature Request for it in the new support system, but I couldn't find the one from Eunjae 🙏 and added your company as the client so it can be prioritised accordingly. @demetriusfeijoo were you aware of any plans on this topic? |
@Dawntraoz thank you for handling this :) |
Hey @Dawntraoz 🙌
Although I recall this topic, I'm not aware of it being prioritized or evolved on our side yet. |
Feature request:
Current block data object in the root of your plugin.data or a util function which returns the object.
Use case you want to read data from a field from your current block. At the moment you have the blockUid in your plugin.data and you have t recursively search for the object with the given uid to get your block data object. Would be cool to either have the block object in the root of your plugin.data or a util function which returns the object. so not everybody has to implement his own search block function.
The text was updated successfully, but these errors were encountered: